RE: [xsl] Confused with templates and XPath

Subject: RE: [xsl] Confused with templates and XPath
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Thu, 8 Jan 2004 13:04:14 -0000
> > 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