RE: [xsl] Input Filenames available to the parser?

Subject: RE: [xsl] Input Filenames available to the parser?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Jan 2006 22:56:22 -0000
> Hi,
>   (Using Saxon8B, XSLT 2.0)
>   Is the name of the input XML file and the XSLT file 
> available to the parser? 

It should be possible to get the URI of the input document using
document-uri(/) - provided it is known (it won't be known if the input is
supplied as an anonymous StreamSource, for example).

The output file name isn't known, you could pass it by parameter as others
have suggested.

Michael Kay
http://www.saxonica.com/


If not, how can the
> following be done?
> 
> For example: 
> If input is "in.xml" being processed by "xform.xsl", I want 
> the generated output to list the two
> files as ...
> 
> :
> //Input XML   : in.xml
> //Transformer : xform.xsl
> :
> :
> 
> Thanks,
> Anupam.
>  
> 
> 
> 		
> __________________________________________ 
> Yahoo! DSL - Something to write home about. 
> Just $16.99/mo. or less. 
> dsl.yahoo.com 

Current Thread