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:
<xsl:param name="index" select="1000"/>
<container><xsl:value-of select="position() + $index"/></container>
So this would be generating XML like
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?