[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: template names

Subject: RE: template names
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 15 Jul 2002 14:43:00 +0100
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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.