This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Retrieving XML document's name
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Retrieving XML document's name
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 2 Jul 2001 23:43:39 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> This is probably pretty simple, but I couldn't find the answer in the
> archives or books... how can you retrieve the name of the XML
> file that you
> are transforming?
In standard XSLT you can't. Pass it in as a parameter if you need it.
With Saxon, there are two extension functions saxon:system-id() and
saxon:base-uri(). (They will give the same answer unless your document uses
xml:base).
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list