This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Q on xsl:choose
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Q on xsl:choose
- From: RSuiter at cccis dot com
- Date: Wed, 21 Feb 2001 12:55:05 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
I'd just add one more thing.
The old Microsoft XSL processor used to accept <xsl:when match='whatever'>
and treat it the same as <xsl:when test='whatever'>.
But this was not in accord with the spec.
When converting from MS XSL to real XSLT, I had to correct mistakes by
hand.
Rick Suiter
sara.mitchell@ps.ge.com@lists.mulberrytech.com on 02/21/2001 12:35:17 PM
Please respond to xsl-list@lists.mulberrytech.com
Sent by: owner-xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
cc:
Subject: RE: [xsl] Q on xsl:choose
Sorry :(, but the error message is correct.
The element xsl:when does not have a 'match' attribute
it has a 'test' attribute. Your code should be :
<xsl:choose>
<xsl:when test="@order='D'">DN</xsl:when>
<xsl:otherwise>UP</xsl:otherwise>
</xsl:choose>
Sara
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list