[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: If.. then OR xsl:choose question

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.