On Jan 3, 2008 12:03 PM, Mario Madunic <[EMAIL PROTECTED]> wrote:
> I would like to use the line-number() extension provided by Saxon when parsing
> my xml files. So far I've not been able to pass the -l arg.
>
> <xslt in="${p_InstallDir}/doNotDelete/keep.xml"
> out="${p_InstallDir}/finished/${p_ReportName}.xml"
> includes="*.${p_IncludeExtensions}" style="${p_InstallDir}/XSLT/master.xsl">
> <param name="-l" expression="true" />
> </xslt>
You are confusing passing a param to the stylesheet, and passing a
param to the Saxon main entry point. The nested <param> is a
stylesheet parameter, as specified by the XSLT spec. There's no way to
pass the -l comand-line flag to Saxon, as Ant is using the generic
Trax API to configure the transformation engine. You'd need to invoke
the Saxon main directly using <java> to be able to pass -l to it. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]