|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: follow-up: document function issue - relative URIs
>
> > Remember that document(.) interprets the URI relative to the source
> > document, while document(string(.)) interprets it relative to the
> > stylesheet.
>
> what is actually the difference between "the source document"
> and the "stylesheet"?
>
> should an xslt processor (also 1.0 processors like Xalan or
> Saxon 6.x) resolve the URI parameter of a document function
> call - e.g. document('somedir/somefile.xml') - normally
> relative to the stylesheet in which the call is in?
The rules for the document() function are explicit: if the first argument is
a node-set, the URI is resolved relative to the node (typically in a source
document) that contains the URI in question; if the argument is a string,
then the URI is resolved relative to the base URI of the element in the
stylesheet containing the call to document().
Michael Kay
|
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
|

Cart








