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

Store node into variable

Subject: Store node into variable
From: "Yoann Moranville yoann.moranville@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Apr 2015 13:14:05 -0000
 Store node into variable
Hi,

Using xslt2, I am probably missing something stupid but can't figure out 
how to make the following working...

<xsl:variable name="date">
<xsl:copy-of select="$element/date"/>
</xsl:variable>
<xsl:variable name="date2" select="$element/date"/>
<xsl:message select="concat('date: ', name($date))"/>
<xsl:message select="concat('date2: ', name($date2))"/>


The output is:
---
date:
date2: date
---


I would need the $date to be the same node as $date2 (I want to use a 
"xsl:choose" in the $date variable).

Thanks,
Yoann

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.