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