I've separately signed four different components of this document, the abstract, molecule, spectrum and a reaction. I didn't bother signing all the text since it's huge and I'm going to over sign the completed document anyway.

In order to replicate what I've done;

1 - run examples/makekeys/1-make3keys.bat and 2-makecmlkey to set up four keys (3 DSA and 1 RSA)

2 - example/xsign/doc_parts/molecule.xml, spectrum.xml, reaction.xml and abstract.xml are the signed components, each has a unfinished enveloping signature. article_core.xml is the remaining article. These are all legal XML and can be opened in IE.

3 - Run example/xsign/doc_parts/sign.bat it to complete the signatures. --> four s_xxx.xml files with DSA certificates 

4 - concatenated the signed components and article_core.xml to form article.xml, validatearticle.bat will check this. NOTE - only the *first* signature is validated - I've no idea why, I think it's ss4j's fault not mine.

5 - a detached signature template is created for article.xml --> sig.xml - this uses RSA (hence use the cmlconsulting alias). It's completed by uploading article.xml to a matching URL and running signsig.bat - validatesig.bat will validate it but you need to be online

6 - corrupted_article.xml is a slightly changed version of perkin.xml, validatecorrupted.bat will show this.

All XML files can be opened in IE, article.xml and corrupted_article.xml will use stylesheets allowing the display of the signings (press 'show signature'). For the full signature, right click and view source.

ERRATA
*the reaction display is broken - I guess there's a bug in my stylesheet. It's a minor issue so for the time being I'm ignoring it.
