RE: [xsl] Two different input get single output

Subject: RE: [xsl] Two different input get single output
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 8 Dec 2009 15:22:29 -0000
> Error:
> =====
> 
> Recoverable error
> 
> XTRE0540: Ambiguous rule match for /cases/section[2]/type[1] 
> Matches both "section/type[.='Drafting']" on the 32 of file: 
> name.xsl and "section/type[not<normalize-string>]" on line 28 
> of file name.xsl
> 

When you get this warning, it's best to add a priority attribute to both
rules to make it clear which one you want to take precedence. In this case
you probably want the rule on line 32 take priority when both match, so put
priority="10" on that rule and priority="9" (say) on the other.

Regards,

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

Current Thread