This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: template names


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]