This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to populate a HTML <select> tag..??
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How to populate a HTML <select> tag..??
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sun, 21 Jan 2001 16:21:09 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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