[Bug 7624] New: [XSLT 2.0] xsl:copy when there is no context item

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

           Summary: [XSLT 2.0] xsl:copy when there is no context item
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            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 is no explicit statement in the spec that it is an error to use xsl:copy
when there is no context item.

Clearly this should be an error. The question is, what error? In many cases the
error can be detected statically, though in a few cases this may not be
possible (e.g. within a named template). xsl:number handles this by making it a
type error (XTTE0990). Oddly, however, using select="." when there is no
context item is a dynamic error rather than a type error (XPDY0002).

Pending a decision on this, I am creating a test case (copy903err) in which the
expected error code is the new code XTTE0945.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 15 September 2009 07:40:26 UTC