This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: template names
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 15 Jul 2002 14:43:00 +0100
- Subject: RE: [xsl] template names
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I have two templates,
>
> <xsl:template name="price" mode="export" >
> ...
>
> and
>
> <xsl:template name="price" mode="full">
>
> Saxon is saying
> There is another template with the same name and precedence
> Transformation failed: Failed to compile stylesheet. 1 error detected.
>
Names of templates aren't affected by mode; when you do
<xsl:call-template>, there is no opportunity to specify a mode, only a
name.
You remind me that we added a rule in XSLT 2.0 that it's an error to
specify "mode" or "priority" on an <xsl:template> with no match
attribute. I haven't implemented that rule in Saxon yet, and I haven't
added it to the backwards compatibility appendix... Thanks for the
reminder!
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list