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

RE: XSL node reference problem

Subject: RE: XSL node reference problem
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Fri, 21 May 2004 14:06:03 +0200
xsl node
> -----Original Message-----
> From: paul.bezault@xxxxxxxxx [mailto:paul.bezault@xxxxxxxxx]
>

Hi,

> <xsl:for-each select="$var1">
>   <xsl:copy-of select="./value"/>
>   <xsl:value-of select="./value"/>
>   <xsl:value-of select="*/value"/>
>   <xsl:copy-of select="*/value"/>
> </xsl:for-each>
>
> no-one of these lines give me a result ...
>

That is because in the chercheNode template:

> <xsl:template name="chercheNode">
>   <xsl:param name="nom"/>
>   <xsl:value-of select="descendant::*[ (self::struct or self::scalar) and
> label =$nom ]"/>
> </xsl:template>

you use value-of. If you use copy-of here, you'll find yourself closer to
the solution.

BTW: I'm not really sure why your variable is constructed by a
call-template.

It just seems like you could just as easily write:

<xsl:variable name="tata" select="descendant::*[
                            (self::struct or self::scalar)
                              and label='tata']" />

maybe replace the literal string with another variable/param.

Your variable will already be a node-set, so no need to convert it using
ext:node-set().

HTH!

Greetz,

Andreas

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.