RE: [xsl] Q on xsl:choose

Subject: RE: [xsl] Q on xsl:choose
From: "Ben Robb" <b.robb@xxxxxxxxxx>
Date: Wed, 21 Feb 2001 18:32:32 -0000
<xsl:when> has the attribute "test", not match.

-----Original Message-----
From: Walter Torres [mailto:walter@xxxxxxxxx]
Sent: 21 February 2001 01:55
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Q on xsl:choose

I seem to be stuck!

I have a small sample data set and am trying to use xsl:choose and

(My code and data is below)

I get this error message...

   Attribute 'match' is invalid on 'xsl:when'

I have spent the last 2 days trying to see the error here.

Can anyone elighten me?



PS: This is an extention to an example in Mr Kay's book.

This is my data...

  <display colWidth='040' id='item' order='D'>Item</display>

This is my code

<xsl:template match='display'>
  <th valign='top'>
   <!-- define Default Sort Direction -->
   <xsl:attribute name='ind'>
     <xsl:when match="@order='D'">DN</xsl:when>
   <!-- Display Title -->
   <xsl:value-of select='.'/>

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread