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

Re: document()

Subject: Re: document()
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 08 Nov 2004 13:18:26 -0500

Would it help to know that document() can take a second argument, a node set, which when used sets the BaseURI used as the starting point for resolving a relative path to the BaseURI of the first node in the given set, instead of the stylesheet as normally?

That is, document('my.xml') will find my.xml next to the stylesheet, but document('my.xml',/) will locate "my.xml" relative to the parsed entity where "/" was found (which is typically, of course, the root node of the source document of the transform).

Depending on your file architecture, this may help you work around your problem. (Though if it's an MSXML3 bug, maybe not.)


At 04:12 PM 11/7/2004, you wrote:
hehe yeah that's exactly my problem.. the only XML file I can open with document() is if it's the same folder as the XSL. :/

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

Current Thread


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.
First Name
Last Name
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.