This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Output XML doc with XSL doc name in comment
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 9 May 2002 12:58:38 +0100
- Subject: RE: [xsl] Output XML doc with XSL doc name in comment
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Every Xpath node does however have a base URI associated, but
> XSLT gives
> no standard access to that information. saxon has a saxon:systemId
> extension to get at it though....
>
Yes. You would have to do saxon:systemId(document('')) to get the base URI
of the stylesheet. An expensive operation; and it would only work if the
system ID is known, which wouldn't be true e.g. if it was supplied as a
DOMSource.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list