RE: [xsl] Matching attribute

Subject: RE: [xsl] Matching attribute
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 24 Sep 2007 09:28:08 +0100
>    <xsl:template match="Object">
>         <xsl:choose>
>             <xsl:when test="[@xsi:type='CTextEx' or 
> @xsi:type='CTextRingEx']">
>                 <xsl:copy>
>                 ..................................
> Here I want to check the xsi:type attribute and do some operations... 
> But I am getting an error at " xsl:when", Where am I gone 

1. Remove the square brackets.

2. Please don't post to this list saying "I am getting an error" without
saying what the error is. You might not understand the message, but for
experienced developers, finding an error with the help of an error message
is about 100 times faster than doing it without.

Michael Kay
http://www.saxonica.com/

Current Thread