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

cascading evaluation of variables

Subject: cascading evaluation of variables
From: "Janvier Majirus FANSI" <jmfansi@xxxxxxxxxxx>
Date: Mon, 11 Oct 2004 12:02:03 +0200
xsl value of selec
Hi all,
I have this following template rule within my stylesheet. I have a problem with a cascade evaluation of variable.


the template is:
<xsl:template match="object">
<xsl:variable name="select"><xsl:value-of select="@select"/></xsl:variable>

<xsl:variable name="path1"><xsl:value-of select="concat('document($sourcefile)/descendant-or-
self::',$select,'/parent::node()')"/>
</xsl:variable>


<xsl:variable name="essai"><xsl:value-of select="$path1"/>
</xsl:variable>

<xsl:value-of select="$path1"/>
<xsl:value-of select="$essai"/>
</xsl:template>

the results are:

<xsl:value-of select="$path1"/> return the string 'document($sourcefile)/descendant-or-self::files/record/parent::node()'.
<xsl:value-of selec="$essai"/> return the same string instead of the nodes set resulting to its evaluation.


I expected that variable $essai was take like entry the result of evaluation of $path1, and return the results nodes set.

Could anyone know, please, what is wrong in my declaration?
I thank all of you in advance.

regards

Majirus

_________________________________________________________________
Hotmail : bienttt 250 Mo de stockage ! http://www.imagine-msn.com/hotmail/fr-fr/


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.