[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting an input attribute using XSL Select
- From: Eric van der Vlist <vdv@dyomedea.com>
- To: Deniz Kilinc <dkilinc@hotmail.com>
- Date: Sat, 23 Jun 2001 13:44:55 +0200
Deniz Kilinc wrote:
>
> Hi all,
>
> How can i assign the name attribute of the "input tag" using the
> "xsl select" method?Code seems here but gives error!
Sure, your XSLT sheet isn't well formed XML:
>
> <input type="text" name=<xsl:value-of select="NAME "/>
^^^^
You can' include an element in a start tag!
To workaround this XSLT as a shortcut for assigning values to attributes
using "{}" and you should write:
<input type="text" name="{NAME}"/>
Eric
--
Pour y voir plus clair dans la nebuleuse XML...
http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
http://xsltunit.org http://4xt.org http://examplotron.org
------------------------------------------------------------------------