xsl-list
[Top] [All Lists]

Re: putting the value from the xml

2003-06-11 18:39:20
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="{(_at_)primero}"/>
</xsl:for-each>

it should work.

Dave Totten

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



<Prev in Thread] Current Thread [Next in Thread>