[Home] [By Thread] [By Date] [Recent Entries]

  • From: Eric van der Vlist <vdv@d...>
  • To: Deniz Kilinc <dkilinc@h...>
  • 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
------------------------------------------------------------------------

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member