[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: "Roger L. Cauvin" <roger@xxxxxxxxxx>
Date: Mon, 18 Dec 2006 09:45:03 -0600
Re:  Behavior of document() Function with Empty String
> 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('').

My project involves a Java web application and a Java 5.0 application that
share the same directory structure.  Unfortunately, the parser in the web
application interprets the document() function differently than the parser
in the standalone application.  I suppose the base paths are different.
Unfortunately, in neither case does document('') refer to the stylesheet
that makes the call.

I can't figure out how to work around this problem without hardcoding
absolute paths or having two sets of stylesheets with different relative

Roger L. Cauvin
r o g e r @ c a u v i n . o r g

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.