Bug#293989: [xml/sgml-pkgs] Bug#293989: xsl stylesheet does not work anymore

Michael Wiedmann Michael Wiedmann <mw@miwie.in-berlin.de>, 293989@bugs.debian.org
Mon, 7 Feb 2005 16:01:44 +0100


Mike Hommey <mh@glandium.org> wrote:

> Taken from:
> http://www.w3.org/TR/xslt#named-templates
> 
> "It is an error if a stylesheet contains more than one template with the
> same name and same import precedence."

But see also:
http://www.w3.org/TR/xslt#conflict

"It is possible for a source node to match more than one template rule. The
template rule to be used is determined as follows:..."

"It is an error if this leaves more than one matching template rule. An XSLT
processor may signal the error; ..."

I understand that xsltproc/libxslt acts according to this ("may signal...").
In previous versions xsltproc/libxslt "recovered" from such a situation. It
would be good to know the reason why Daniel changed this.

Michael
--