Hi everyone,
I hope this is a simple (syntax) thing and that someone can point me in the right direction.
At the moment, I am successfully processing an XML file with Saxon (from the command line) and get the output that I expect.
However, the XSL file that I have 'inherited' contains multiple templates. e.g.
<xsl:template match="/">
XSL ... stuff
</xsl:template>
<xsl:template name="record">
More XSL ... stuff
</xsl:template>
So far my processing only takes the first template so now I need to know how to get it to process the file using the second template.
Here is my calling syntax (written all on one line normally) ...
java -jar saxon9he.jar -t -s:c:\xml\fragme nt.xml -xsl:c:\xml\xsl_ file.xsl -o:c:\xml\fragme nt.txt
I am sure that all I need to do is to 'plug' in a reference to the named template and indeed the saxon documentation mentions various parameter options but I am not clear about how this is implemented.
Anyway, I hope that someone has a little tip or a snippet of code for me.
Regards and thanks,
Alan
I hope this is a simple (syntax) thing and that someone can point me in the right direction.
At the moment, I am successfully processing an XML file with Saxon (from the command line) and get the output that I expect.
However, the XSL file that I have 'inherited' contains multiple templates. e.g.
<xsl:template match="/">
XSL ... stuff
</xsl:template>
<xsl:template name="record">
More XSL ... stuff
</xsl:template>
So far my processing only takes the first template so now I need to know how to get it to process the file using the second template.
Here is my calling syntax (written all on one line normally) ...
java -jar saxon9he.jar -t -s:c:\xml\fragme nt.xml -xsl:c:\xml\xsl_ file.xsl -o:c:\xml\fragme nt.txt
I am sure that all I need to do is to 'plug' in a reference to the named template and indeed the saxon documentation mentions various parameter options but I am not clear about how this is implemented.
Anyway, I hope that someone has a little tip or a snippet of code for me.
Regards and thanks,
Alan
Comment