[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: get the current xml file name

Subject: RE: get the current xml file name
From: Owen Rees <owen.rees@xxxxxx>
Date: Tue, 08 Aug 2006 09:19:34 +0100
get uri of xml file
--On 08 August 2006 07:42 +0100 Colin Adams wrote:

I would think something like:

document (concat(document-uri(/),'../','nextfile.xml')) should do the
trick.

If you are using XSLT 2.0, you can use the resolve-uri function which
will be a bit neater.

If you can use document-uri then you should be able to use resolve-uri - both are new in XPath 2.0.


document(resolve-uri('nextfile.xml',document-uri(/)))

See also base-uri.

By the way, if there is a function in the XSLT as implemented in popular browsers that allows you to discover the URI of either the XML or the XSLT processing it then I would be interested to know what it is. I was looking for one recently, but could find only the XPath 2.0 functions which are not available in browsers.

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.