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

Re: Put Xpath in variable

Subject: Re: Put Xpath in variable
From: <m.core@xxxxxxxxxxxxxxxx>
Date: Mon, 28 Aug 2006 16:52:40 +0200
Re:  Put Xpath in variable
Thx a lot Abel...
I have one last question
if i make something like this:

(xsl:for-each select="field[contains(@id, 'containerWidth')]")
 (xsl:variable name="var1" select="@value" /) 
(/xsl:for-each)

in var1 i put different values one for each instance of containerWidth in the xml tree, infact if i make:

(xsl:value-of select="$var1" /)

it print out this:
45
14
2
6

If i want to make one variable for each values or make a variable that contains only the first value how can i do?

in any case thx all guys this list is very usefull to me

bye 
Matteo

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.