W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

RE: TR/xquery-operators/#func-doc

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 14 May 2003 02:26:57 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DCE28@daemsg02.software-ag.de>
To: David.Pawson@rnib.org.uk, public-qt-comments@w3.org

> I'm either still ignorant, or require convincing.
> 
> If I use xml:base, how do I read the stylesheet using 
> document()? E.g. 
>  xml:base = the root of this disk,
>  my stylesheet is in directory /xsl
> 
> What param is passed to document() to retrieve the stylesheet please?
> 

The whole point of xml:base is to change the way that relative URIs held in
a document are resolved; we can't make an exception for the special case of
the relative URI "".

You can always pass a stylesheet parameter that gives the URI of the
stylesheet, and use this parameter to retrieve the source code.

However, the need for this coding technique will greatly decline in XSLT
2.0. It was used in XSLT 1.0 almost exclusively to handle fixed look-up
tables, which can be handled in XSLT 2.0 much more efficiently using
temporary trees held in global variables.

Michael Kay
Received on Tuesday, 13 May 2003 20:30:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT