This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: If.. then OR xsl:choose question


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]