Subject: Re: [xsl] putting the value from the xml From: David Totten <xsl@xxxxxxxxxxxxxx> Date: Wed, 11 Jun 2003 21:39:20 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] putting the value from the xm, Dionisio Ruiz de Zar | Thread | [xsl] showing one number of inputs, Dionisio Ruiz de Zar |
[xsl] showing one number of inputs, Dionisio Ruiz de Zar | Date | [xsl] Inserting commented elements , Steve Schwarz |
Month |