Subject: RE: xsl loop for display in drop-down box From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 24 Mar 2000 09:19:07 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: xsl loop for display in drop-do, Seema Ramanathan | Thread | Re: xsl loop for display in drop-do, Charlie Cox |
Re: Testing the type of the current, Warren Hedley | Date | RE: Testing the type of the current, Kay Michael |
Month |