Michele,
pass along the name of the input file as a parameter:
saxon -o testdata/out_file.htm ../xml_files/in_file.xml ../styles/test.xsl
input_filename="in_file.xml"
or in xslt 2 the base-uri() function might be helpful:
<xsl:value-of select="base-uri(/)"/>
Terry
On Thu, 15 Feb
2007,
Michele Combs wrote:
> 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
> it.
>
> Michele C.
>
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=-
> Michele R. Combs
> [log in to unmask]
> Manuscripts Processor
> Special Collections Research Center
> Syracuse University Library
> 222 Waverly Avenue
> Syracuse, NY 13244
> (315) 443-2697
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=-
>
Terry Catapano
Special Collections Analyst/Librarian
Columbia University Libraries Digital Program
212-854-9942
[log in to unmask]
|