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

Resolving ambiguities when overriding the identity rule (Was

Subject: Resolving ambiguities when overriding the identity rule (Was: RE: Counting nodes efficiently )
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 19 Feb 2004 05:06:59 -0800 (PST)
resolving ambiguities
Thanks to Dave Pawson I was alerted that this code raises a recoverable
error (e.g. in Saxon 6.5.3: 

"Recoverable error
Ambiguous rule match for /nums[1]
Matches both "@* | node()" on line 5 of file:/(Untitled)
and "*" on line 26 of file:/(Untitled)")


Maybe I'm limited in some way, but I do hate to use priority (probably
because setting explicit values strongly goes interferes with the
otherwise implicit process of template matching).

This is why here's a cheat:

Replace:

  <xsl:template match="*">

with

  <xsl:template match="*[true()]">


Now everybody must be happy... Or are they?


Cheers,
 
Dimitre Novatchev 
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

 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.