W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2001

RE: conflict resolution issue

From: Michael Kay <mhkay@iclway.co.uk>
Date: Fri, 9 Feb 2001 22:14:18 -0000
To: "'Matthew Bentley'" <matthew.bentley@brookers.co.nz>, <xsl-editors@w3.org>
Message-ID: <000501c092e5$a62b5e40$c3493c3e@oemcomputer>
> I would recommend adding more rules for template priority
> construction:
> for example, I would expect this:
>
> <xsl:template match="dis.para[@style='k' or
> @style='c'][not(dnumber)]">
>
> to override this:
>
> <xsl:template match="dis.para[@style='k' or @style='c']">

The trouble about this is that there are many cases where it's obvious to
the stylesheet author that one match pattern is more selective than another,
but where it requires a fair bit of analysis to deduce this. For example

match="para[p and q]"
  implies
match="para[p[1] or q[last()]]"
  but does not imply
match="para[p[2] or q[last()-1]]"

It would be very hard to define all the rules in detail.

Mike Kay
Received on Friday, 9 February 2001 17:12:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT