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]

RE: Q on xsl:choose



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


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