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

RE: Confused with templates and XPath

Subject: RE: Confused with templates and XPath
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Thu, 8 Jan 2004 13:04:14 -0000
ambiguous rule match for
> > are you sure of that ?
> 
> yes:-)
> 
> 
> If I run saxon on the example document that you posted, I get:
> 
> 
> $ saxon prio.xml prio.xsl
> Recoverable error
> Ambiguous rule match for /doc[1]/chapter[1]/para[1]
> Matches both "//para" on line 8 of file:/c:/tmp/prio.xsl
> and "chapter/para" on line 5 of file:/c:/tmp/prio.xsl
> 
> 
>    default-para : para1
> 
>    default-para : para2


Out of interest Msxml 3, Saxon 6.5.3, 7.8, and Xalan 2.5.2 will give
you:

   default-para : para1
   default-para : para2

While Msxml 4 will give you:

   default-para : para1
   chapter-para : para2

Maybe that is where the confusion comes from.

cheers
andrew  

 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.