[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Input Filenames available to the parser?

Subject: RE: Input Filenames available to the parser?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Jan 2006 22:56:22 -0000
RE:  Input Filenames available to the parser?
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.