Subject: RE: [xsl] template names From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Mon, 15 Jul 2002 14:43:00 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] template names, David Carlisle | Thread | RE: [xsl] template names, Andrew Welch |
RE: [xsl] xslt 2 grouping - solutio, Michael Kay | Date | RE: [xsl] Prefix -> Namespace Resol, Michael Kay |
Month |