This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: If.. then OR xsl:choose question
- From: Greg Faron <gfaron at integretechpub dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 17 Jun 2002 14:30:07 -0600
- Subject: Re: [xsl] If.. then OR xsl:choose question
- References: <001301c216e9$ef969750$9a72003e@242cgyw7d7uhs3>
- Reply-to: xsl-list at lists dot mulberrytech dot com
At 01:25 PM 6/17/2002, I wrote:
A<div>
<xsl:choose>
<xsl:when test="@pos='First'">
<xsl:attribute name="style" value="border:'1px solid
green';padding-left:20;" />
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style" value="border:'1px solid green';" />
<xsl:otherwise>
</xsl:choose>
<!-- contents of div here -->
</div>
That's what I get for not testing my code. There is no such thing as a
"value" attribute in the <xsl:attribute/> element. Put the content of the
"value" above between the opening and closing tags.
Greg Faron
Integre Technical Publishing Co.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list