This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl loop for display in drop-down box
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: xsl loop for display in drop-down box
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 24 Mar 2000 09:19:07 -0000
- Reply-To: xsl-list at mulberrytech dot com
> Saxon gives me the following error:
> "Cannot write an attribute when there is no open start tag"
> <xsl:element name="option">
> <xsl:value-of select="."/>
> <xsl:if test="@SELECTED='Y'">
> <xsl:attribute name="SELECTED"><xsl:value-of
> select="($tmp)"/></xsl:attribute>
> </xsl:if>
> </xsl:element>
Generate the attribute node before you generate the text node., i.e. move
the <xsl:if> to before the <xsl:value-of>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list