[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Behavior of document() Function with Empty String
Colin Paul Adams wrote:
Whatever, I agree with your conclusion that you cannot rely on 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|