W3C home > Mailing lists > Public > public-grddl-wg@w3.org > September 2007

aboutTests issuette

From: Jeremy Carroll <jjc@hpl.hp.com>
Date: Thu, 20 Sep 2007 15:36:53 +0100
Message-ID: <46F28585.4030403@hpl.hp.com>
To: public-grddl-wg@w3.org


Sorry for not noticing earlier:

I get errors when running the aboutTests transform on the test cases rec.

e.g.

  Ambiguous rule match for 
/html/body[1]/div[12]/div[1]/ul[1]/li[30]/div[2]/a[1]
Matches both "h:a[@href='#testing_GRDDL_transformation']" on line 42 of 
http://www.w3.org/2001/sw/grddl-wg/td/aboutTests.xsl
and "h:a[@href='#testing_GRDDL_transformation']" on line 30 of 
http://www.w3.org/2001/sw/grddl-wg/td/aboutTests.xsl

The relevant text of the XSLT 1 spec is:
[[
It is an error if this leaves more than one matching template rule. An 
XSLT processor may signal the error; if it does not signal the error, it 
must recover by choosing, from amongst the matching template rules that 
are left, the one that occurs last in the stylesheet.
]]

my transformer seems to signal the error and to recover correctly, so 
gets the right results.

However, IMO the stylesheet should be fixed, e.g. by introducing a new 
mode for the correct rule on line 42, and ensuring that this mode is 
used in the normal case.

Jeremy
Received on Thursday, 20 September 2007 14:37:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:50 GMT