[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 18:32:32 GMT
Re: XSLT V 1.1
> So what's a problem? If you don't like to write 
> 
> <mumble href="some/xxx.xml"/>
> 
> <xsl:template match="mumble">
> <xsl:apply-templates select="document(@href)"/>
> </xsl:template>


I don't like to write that as that finds some/xxx.xml relative to the
stylesheet. (or did you man "some" here to be absolute?)

> You can write:
> 
> <mumble href="xxx.xml"/>
> 
> <xsl:template match="mumble">
> <xsl:apply-templates select="document(@href, 'some')"/>
> </xsl:template>

I don't like to write that as that puts "some" in the stylesheet but the
whole point is that it varies depending on which mumble node in the
document is being processed, and currently there is no way to determine
'some' from the stylesheet because the URI are not exposed to xpath.


> What's the problem ?
Neither of your suggestions provide the functionality of resolving a
relative URI reference relative to the URI of a particular node in the
source.


> I'm fine with your solution or with *any* other solution which will 
> turn document() monster into something simpler. 

well one assumes that even with the extra functions that I suggested
that document() will keep its semantics for reasons of compatibility
if nothing else, so you'll have to learn to live with the monster
(perhaps in 2.0 you can keep it caged though:-)


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.