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

RE: Compatibility Question

Subject: RE: Compatibility Question
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 12 May 2007 10:16:09 +0100
RE:  Compatibility Question
XSLT 1.0 says in section 5.7:

If xsl:template does not have a match attribute, it must not have a mode

It's a rather arbitrary rule, because in many similar cases redundant
attributes are simply ignored: but it's there.

It should be safe to delete the attribute, since mode has no meaning when
templates are called by name.

Michael Kay

> -----Original Message-----
> From: Shridhar Venkatraman [mailto:Shridhar@xxxxxxxxxxxx] 
> Sent: 12 May 2007 10:05
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Compatibility Question
> In trying out ODF2HTML a xslt based conversion of Open Office 
> documents to HTML, I find the XSLT has a few situations where 
> Saxon and XALAN throw compile/syntax errors. However, the 
> XSLT within FireFox does not.
> An example is the 'Mode' attribute in call-template.
> 'The mode attribute must be absent if the match attribute is absent'
> This module comes with commands for xsltproc which we do not 
> use, which lead me to google and then to this list.
> Am I right in assuming that XSLTPROC is incompatible with the 
> standards and that Saxon and Xalan are and hence this problem ?
> Using Saxon 6.5.5 XSL 1.0 JRE1.6.1

Current Thread


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.
First Name
Last Name
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.