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

Re: putting the value from the xml

Subject: Re: putting the value from the xml
From: David Totten <xsl@xxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2003 21:39:20 -0400
Re:  putting the value from the xml
On Thu, Jun 12, 2003 at 02:14:16AM +0200, Dionisio Ruiz de Zarate wrote:
> i have the next xml:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <root>
> <texto  primero="asdfasdf" segundo=""/>
> <texto  primero="asdfasdf" segundo=""/>
> </root>
> 
> how can i make one :
> <input type="text" name="mensaje" size="35" value=""> and into the value to
> put the primero value?
> i am trying with the next but it doesn't run:
> 
> <xsl:for-each select="texto">
> <input type="text" name="mensaje" size="35" value="<xsl:value-of
> select="@primero"/>"/>
> </xsl:for-each>

if you change this to:

<xsl:for-each select="texto">
 <input type="text" name="mensaje" size="35" value="{@primero}"/>
</xsl:for-each>

it should work.

Dave Totten

 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.