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

Re: Implementing XPointer Resolution With saxon:evalua

Subject: Re: Implementing XPointer Resolution With saxon:evaluate()
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 14 Aug 2002 19:12:36 +0100
Re:  Implementing XPointer Resolution With saxon:evalua
Hi Eliot,

> I still think it would be useful to have an XSLT element that
> returns a node set such that:
>
> <xsl:variable name="result-node-set">
>  <xsl:get-node-set select="."/>
> </xsl:variable>
> <xsl:if test="generate-id(.) = generate-id($result-node-set[1])">
>   <xsl:message>identity is preserved</xsl:message>
> </xsl:if>
>
> works. It would certainly simplify my current task and provide the
> natural companion to copy-of.

I agree. Based on the current WDs, XSLT 2.0 will be just the same
here, except that you'll be able to do all (or some!) of the funky
processing that you need to create the node-set that you want within
an XPath expression. Mostly, though, I think you'll still have to
create the node-set by building it through recursion in the ways we've
just looked at.

My preferred solution to the problem of creating sequences was to
introduce a xsl:item element to XSLT language, working in precisely
the way you illustrate above, so that you can use the full power of
XSLT for creating sequences of all kinds (see
http://lists.w3.org/Archives/Public/xsl-editors/2002JanMar/0050.html).
But it looks as though that isn't going to be adopted.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.