[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: Eckenberger Axel <Extern.Eckenberger@xxxxxxxx>
Date: Wed, 13 Sep 2000 09:56:44 +0200
axel xslt
> -----Original Message-----
> From: Paul Tchistopolskii [mailto:paul@xxxxxxx]
> Sent: Tuesday, September 12, 2000 8:44 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: XSLT V 1.1

> > I second Davids proposal that there should be a standard 
> > interface to the various URI's
> > present in the processor.

In a recent discussion we traced a problem to the fact that neither the
stylesheet, nor the xml-document did have a file representation and were
in-memory only. As document was feeded with a relative URI the stylesheet
could not be parsed, because the URI of the sylesheet could not be retrieved
(no file !!!). If there would be a standard way of determinig the URI of the
stylesheet, it could be tested whether the stylesheet has an URI or not and
if not the error could be processed. For this reason I too second David's
proposal.

------------snip ------------------
> My solution is:
> 
> 1. Provide XSL stylesheet with URI of 'XML' and 'XSL'.
> 2. Resolve all URI's in document() relatively to 'XML'
> and 'xsl:import' 'xsl:include' relatively to 'XSL'
> 3. For other (weird) cases - calculate the desired
> URI by yourself.
> 
> Yes, (3) requires XSL Engine  to provide 2
> parameters to each stylesheet. Like :
> "current-xsl" and "current-xml".
> 
> Or "$argv0" and "$argv1".  Or add 2 more functions,
> like get-xsl-uri() and get-xml-uri().
> 
> 2 more parameters will be better than 2 more functions,
> from my point of view and will be better than current
> document().

The problem is that you look at the topic from a point of view where you
have files, but if you use XML within components (via the DOM) you might not
have them and IMHO this is not a 'weied' case. I agree that there should be
a way of determinig the URI for a node (and a way of determining whether
ther is _no_ URI, see above). Hovever, I do not agree with you that it
should be the document function's default behaviour to resolve relative
paths relative to the xml document.

------------snip ------------------
> Rgds.Paul.


 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.