[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: Thu, 14 Sep 2000 10:22:12 GMT
Re: XSLT V 1.1
> 3. For other ( I think weird and hypothetical, but maybe 
> possible - depends on David's answer ) 

As things currently stand in XSLT you have to use the second argument
whenever you want to interpret a relative URI as in the xpath model
(although not, I think, strictly implied by XML 1.0) the base URI
used for resolving relative URI references depends on the URI
of the entity (and with xbase, it depends on the URI of the element)
rather than the URI of the document root. This means that in XML
entity reference to external entities is not simply a textual macro
replacement of the &xxx; by the content of the file, URI information
has to be preserved.


> There is document() function. It is loading XML files.
> It is resolved relatively to URI of XSL stylesheet
> ( but not relatively to URI of XML input ). This is 
> not reasonable and requires second parameter 
> mumbo-jumbo. 

Including documents relative to the stylesheet is very common:
the xml file may have textual (eg language dependent) texts and it is
often more convenient to have them stored in an XML form other than
an XSL file conating a variable definition (which would be the
alternative, if you had to use xsl:include)

But the functionality of the second argument is needed anyway if you
need to dereference relative URI coming from the source. The URI of the
root of the document is just not the correct base URI for such
references in most of the documents that I see.

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.