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

Re: XSLT V 1.1

Subject: Re: XSLT V 1.1
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 15 Sep 2000 09:51:31 GMT
Re: XSLT V 1.1
> I'l be very glad to see XSL pseudo-code which works 
> with current document() but will fail with this version.

That's easy because you can't, as things stand in XSLT 1.0,
obtain the URI of any node so if you currently have
a two argument use of document, you can't change to your proposed
version (even if you know th euRI of the root of the input document)
as you (or rather the XSLT engine running the stylesheet) does not
know the URI of the node.

You suggest that
document(relative-uri,node)

should be replaced by

new-document(relative-uri,base-uri)

but you can't do that unless you also provide a function (as i suggested
before) which returns the uri of a node, so then you'd have the original
as 

new-document(string-as-relative-uri,uri-of-node(node))


> Empty string "" works like a reference to stylesheet 
> document itself.

'' currently works as a reference to the stylesheet as a consequence of
the standard rules for resolving relative URI references.
If relative references were taken relative to the document except for a
special case of "" which was taken as the stylesheet that would be
incompatible with the algorithm for resolving relative uri references in
the relevant RFC and I doubt such a suggestion would ever get past W3C
review (even if it was otherwise a good idea:-)

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.