This set of exercises show how you can keep node sets around for further processing.
We first use again the 'mini corpus' that was given here. Remember that you will need an index file as usual to get at them: here is another one that you can use. N.B. You will probably need to edit this index file so that the folder names are correct for your files!!
The first relevant transformation files are: compare-files.xsl, compare-files2.xsl.
For the second bag of tricks we use two specially prepared very simple files: file1.xml and file2.xml
And again two transformation files that group the information in two different ways:
These transformations are a bit different to others that we have seen, in that they use the 'document' function to choose their own inputs. This means that you will get the same result regardless of what XML-file you apply them too!