RE: [xsl] Q on xsl:choose

Subject: RE: [xsl] Q on xsl:choose
From: RSuiter@xxxxxxxxx
Date: Wed, 21 Feb 2001 12:55:05 -0600
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@xxxxxxxxx@lists.mulberrytech.com on 02/21/2001 12:35:17 PM

Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx

Sent by:  owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To:   xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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


Current Thread