Subject: RE: Retrieving XML document's name
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 2 Jul 2001 23:43:39 +0100
|
> 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
| Current Thread |
|
Michael Kay - Mon, 2 Jul 2001 18:45:15 -0400 (EDT) <=
Wendell Piez - Mon, 2 Jul 2001 18:50:18 -0400 (EDT)
Johannes Döbler - Tue, 3 Jul 2001 09:44:50 -0400 (EDT)
Thomas B. Passin - Mon, 2 Jul 2001 17:57:07 -0400 (EDT)
|
|