This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Retrieving XML document's name


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]