You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Donald Ball <ba...@webslingerZ.com> on 2002/02/27 22:22:50 UTC

Re: Named template conflict resolution changes?

On 27 Feb 2002, David Perkowski wrote:

> I am using Xalan, in this case, to do templating for a web application.
> Here is my example:
>
> A.xsl:
> ---------
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>
>  <xsl:include href="Base.xsl"/>

should be xsl:import for the following rules to apply.

> Excerpt section 6, Named Templates:
>   It is an error if a stylesheet contains more than one
>   template with the same name and same import precedence.
>
> Excerpt section 2.6.2, Stylesheet Import:
>   For example, suppose
>     * stylesheet A imports stylesheets B and C in that order;
>     * stylesheet B imports stylesheet D;
>     * stylesheet C imports stylesheet E.
>   Then the order of import precedence (lowest first) is
>   D, B, E, C, A

- donald