Subject: Resolving ambiguities when overriding the identity rule (Was: RE: [xsl] Counting nodes efficiently ) From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Thu, 19 Feb 2004 05:06:59 -0800 (PST) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] JavaScript and XSL (ver2), Jeni Tennison | Thread | [xsl] Re: Resolving ambiguities whe, Wendell Piez |
RE: [xsl] Counting nodes efficientl, David . Pawson | Date | Re: AW: [xsl] intra document link, G. Ken Holman |
Month |