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

RE: tu put one value into the radio value

Subject: RE: tu put one value into the radio value
From: "Steve Gold" <Steve@xxxxxxxxxxxxx>
Date: Mon, 3 Mar 2003 21:28:36 -0500
tu put
Although the line you have seems to make sense logically:
<input type="radio" name="votacionvalor" value="<xsl:value-of
select="nombre"/>" />
it produces an error because XML itself doesn't like nesting "xsl:"
items inside other tags, like the HTML "input".

Try this instead:
<xsl:variable name="myVarVotacionvalor" select="nombre" />
<input type="radio" name="votacionvalor" value="{$myVarVotacionvalor}"
/>

The {$myVarVotacionvalor} syntax lets you put XSL variables into HTML.
Sometimes, it even works like this:
<input type="radio" name="votacionvalor" value="{nombre}" />
Where {nombre} is the value of the current item, but I like using the
variable.

Hope this helps!

-----Original Message-----
From: Dionisio Ruiz de Zarate [mailto:dionisio@xxxxxxxxxxxxx] 
Sent: Monday, March 03, 2003 6:42 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  tu put one value into the radio value


i have this:
<input type="radio" name="votacionvalor" value="" /><br />
in the input value i want to put the value of:
<xsl:value-of select="nombre"/>
if i try to meke the next it produces error:
<input type="radio" name="votacionvalor" value="<xsl:value-of
select="nombre"/>" />

how can i sove it?
thanks



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

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


 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.