|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








