Bug#293989: [xml/sgml-pkgs] Bug#293989: xsl stylesheet does not work anymore
Mike Hommey <firstname.lastname@example.org>, email@example.com
Mon, 7 Feb 2005 20:14:52 +0100
On Mon, Feb 07, 2005 at 04:01:44PM +0100, Michael Wiedmann <firstname.lastname@example.org> wrote:
> Mike Hommey <email@example.com> 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:
> "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; ..."
That refers to how to *match* a template (i.e. through xsl:apply-templates),
not how to resolve a named one (i.e. through xsl:call-template).
> 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.
Because it is the expected behaviour.