Hello Michele,
Michele Combs on Thursday 15 February 2007 13:42:
> Anyone know how to access the name of the input file when doing an XSLT
> transform? I'm using Saxon, command line as follows:
>
> saxon -o testdata/out_file.htm ../xml_files/in_file.xml
> ../styles/test.xsl
>
> Within my style sheet (test.xsl) I want to be able to get the name of
> the input file, in this case in_file.xml, and output it at a particular
> spot in out_file.htm. There's got to be a way but I can't seem to find
in XSLT 2.0:
<xsl:variable name="input_file_name" select="tokenize(base-uri(.), '/')[last()]" as="xs:string" />
Regards
|