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

RE: Access all values

Subject: RE: Access all values
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 May 2003 20:56:38 +0100
xsl get all values
   Hello,

   I show you the example,

   <xsl:variable name="langs" select="terms/lang"/>

   langs will access all the childs of the select. How can I get all of
   them in just one varible, like if it was an array?

   I need this because I have it a form and I have to submit an array of
   langs.

   Thanks,

   Ricardo Saraiva.


Sorry but that isn't an example of anything, you'd need to show a sample
input and a required output.
I'm not sure what you mean by "childs of the select", the expression
would select all lang children of terms children of the current node. 
They are all in "one variable", accessed by $langs.

I can only assume by "all" you mean all of the lang nodes in the document
rather than just grandchildren of the current node, that would be
<xsl:variable name="langs" select="//lang"/>

But it's not clear that you need a variable at all, usually when
beginners expect to use a variable in XSLT then it turns out that no
variable is needed.

David

 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.