[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: determine absolute path of processed xml
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 5 Aug 2004 12:18:56 +0100
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@xxxxxxxxxxx] 
> Sent: 05 August 2004 11:56
> To: Xsl-List (E-Mail)
> Subject:  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

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member