|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








