OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting an input attribute using XSL Select




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
------------------------------------------------------------------------