Re: [xsl] If.. then OR xsl:choose question

Subject: Re: [xsl] If.. then OR xsl:choose question
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Jun 2002 14:30:07 -0600
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


Current Thread