[Bug 1230] New: Rules for forwards-compatibility mode

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1230

           Summary: Rules for forwards-compatibility mode
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


There's an inconsistency in the rules for forwards-compatibility mode (section
3.9). It says:

<quote>
Within a section of a stylesheet where forwards-compatible behavior is enabled,
errors that would normally be static errors are treated instead as dynamic
errors. This means that no error is signaled unless the construct containing the
error is actually evaluated.

This includes, but is not limited to, the following situations:
</quote>

and then, inter alia:

<quote>
if an element has an optional attribute with a value that XSLT 2.0 does not
allow the attribute to have, then the attribute must be ignored.
</quote>

The first statement would suggest that if the instruction <xsl:copy
copy-namespaces="not-on-your-nelly"/> is actually executed, it should be treated
as a dynamic error.

The second statement suggests that this instruction should be evaluated as if it
were <xsl:copy/>. (This was the XSLT 1.0 rule, and I believe is the correct one.)

Received on Friday, 8 April 2005 16:04:08 UTC