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

RE: find the following sibling of my parent - no way in stan

Subject: RE: find the following sibling of my parent - no way in standard XSLT of constructing an XPath expression
From: "Paulo Gaspar" <Paulo.Gaspar@xxxxxxxxxxxx>
Date: Thu, 27 Apr 2000 18:26:51 +0200
stan paulo
I have been missing that a bit...
...together with TRUE VARIABLES.

That "looks" simple and would add a lot of power.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Kay Michael
Sent: Thursday, April 27, 2000 4:50 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: find the following sibling of my parent


<xsl:value-of
> select="generate-id($context::following-sibling::*[position()=1])"/>

Others have pointed out the correct syntax here.

> </xsl:attribute>NEXT</xsl:element>
>         </xsl:when>
> 	    <xsl:otherwise>
>                 <xsl:variable name="newcontext">
>                 <xsl:value-of select="concat($context,'::parent')"/>
>                 </xsl:variable>
>                 <xsl:call-template name="parentnext">
>                 <xsl:with-param name="context" select="$newcontent"/>
>                 </xsl:call-template>
>         </xsl:otherwise>
>         </xsl:choose>

NO! The parameter passed to parentnext will be a string containing an XPath
expression, it will not be the result of evaluating that expression. There
is no way in standard XSLT of constructing an XPath expression at run-time
and then evaluating it. (There is a Saxon extension to do this, but I'm
fairly sure you don't need it here.)

Mike Kay


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


 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.