[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: MSXML v. Saxon - whose bug?

Subject: RE: MSXML v. Saxon - whose bug?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 13 Sep 2000 14:56:01 +0100
RE: MSXML v. Saxon - whose bug?
> The following XML and XSL produces one more output element in 
> Saxon 5.4
> than in MSXML3 July download - listings follow (with some removeal of
> blank lines):
>   <xsl:template match="status" />
>   <xsl:template match="itemStatus/status" />
>   <xsl:template match="itemStatus/*">
>     <attribute name="{name(.)}"><xsl:value-of
> select="text()"/></attribute>
>   </xsl:template>
> 
The second and third template rules above both match the <status> element.
This is technically an error. The processor is allowed to recover from this
error by choosing the template rule that comes last in the stylesheet, which
is what Saxon is doing. MSXML appears to be applying the itemStatus/status
rule, which I think is definitely incorrect.

But really you should be giving these rules explicit priorities.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.