In XSLT 2.0 you can do document-uri(/).
If you're not using 2.0, you can do saxon:system-id(/).
In both cases they only work if the systemId is actually known, which may
not be the case if for example the source was supplied as a DOMSource.
A more portable solution is to pass the URI to the stylesheet as a
parameter.
Michael Kay
-----Original Message-----
From: Sebastian Fey [mailto:fey(_at_)parsytec(_dot_)de]
Sent: 05 August 2004 11:56
To: Xsl-List (E-Mail)
Subject: [xsl] determine absolute path of processed xml
hi,
is there a (saxon-) extension that returns the absolute path
of the _XML_ being processed by xsl.
thx,
sebastian
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--