xsl-list
[Top] [All Lists]

RE: Build a select list of nodes

2002-11-26 03:03:04
Hi Simon

You problem is that you're trying to make the output HTML like it was text.
You've got a serialiser to look after that, all you need to do is create the
nodes.

Instead of this, 
                        <xsl:text>&lt;OPTION VALUE = &quot;</xsl:text>
                        <xsl:value-of select="name()" />
                        <xsl:text>&quot;&gt;</xsl:text>
                        <xsl:value-of select="name()" />
                        <xsl:value-of select="$newline"/>

<OPTION VALUE="{name()}"><xsl:value-of select="name()"/></OPTION>

You can also use <xsl:element> and <xsl:attribute> to make the option
elements, but the above is quicker to type.

Regards,
Tom SW

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



<Prev in Thread] Current Thread [Next in Thread>