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

Re: Behavior of document() Function with Empty String

Subject: Re: Behavior of document() Function with Empty String
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Sun, 17 Dec 2006 21:08:19 +0100
Re:  Behavior of document() Function with Empty String
Colin Paul Adams wrote:
Whatever, I agree with your conclusion that you cannot rely on
document ('') working.

Though I don't fully understand what the phrase "no base uri" may mean here in this discussion, I think it's in place here to state that document('') never works once you offset the base uri by using xml:base in the xsl:stylesheet element, or in any direct ancestor to the element containing the document('') instruction.


In a particular project of us, all stylesheets from a stylesheet library are located in a certain directory structure, deeper nested than the input/output sources location. To get easy access to the paths of input/output and for all stylesheets to "see" the same directory structure, all those stylesheets have an xml:base instruction of "../..". This has the (uncanny) side benefit of effectively disabling the call to document('').

Once you use document(''), be sure you do not have an ancestor parent element containing an xml:base element.

Cheers,
Abel Braaksma

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.