I am using Saxon to do XML-to-XML conversion from command line. Is there any way of passing a parameter from the command line to be used by the transform? For instance, suppose I have the following segment:
Code:
<xsl:param name="index" select="1000"/>
<xsl:template match="/">
<xsl:for-each select=...
<container><xsl:value-of select="position() + $index"/></container>
...
So this would be generating XML like
Code:
<container>1001</container>
<container>1002</container>
<container>1003</container>
...
Now suppose I want to pass the starting value for index as a parameter so that, for instance, for the 1st file it starts from 1000, for the second from 1500 etc. Can I do it using Saxon? What would be the proper XSLT syntax to use the passed value?
Thanks much