This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to populate a HTML <select> tag..??


> how do 
> I fill in such
> tag attributes as value="", and so on using xsl? For example:
> 
> <select name="<xsl:value-of select='.'/>" size="1"><option
> value="<xsl:value-of select='.'/>"></select>
> 
Either use attribute value templates:

<select name="{.}" size="1">

or xsl:attribute:

<select>
<xsl:attribute name="name">
  <xsl:value-of select="."/>
</xsl:attribute>
</select>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]