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

For-each iteration problem

Subject: For-each iteration problem
From: "Johnson, Kaerstin" <johns218@xxxxxxxxx>
Date: Thu, 18 Mar 2004 14:12:02 -0700 (MST)
for each iteration
I have a piece of xml that will be printed out as html checkboxes or radio
boxes depending on the value of the multiple variable (which will be radio
or checkbox)... I was unable to get this to work easily, and the code I am
using now seems to put an extra/blank input box before each value...

Below is the code Im using starting from match possibleValues and the xml
snippet it 'should' translate...

<xsl:template match="possibleValues" >
     <xsl:param name="multiple"/>
     <xsl:param name="label"/>

                      <xsl:for-each select="node()" >
                <input type="{$multiple}" name="{$label}" value="node()">
                <xsl:value-of select="node()" />    &#160; &#160;
                <xsl:if test="position() mod 4 = 0"> <br /> </xsl:if>



sample xml:
		<name>Field Name</name>
		<description>Field Description</description>

Any help is greatly appreciated...

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.