[Bug 15143] New: [XQuery30] declare context item example

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15143

           Summary: [XQuery30] declare context item example
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XQuery 3.0
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org


In 4.17 Context Item Declaration the second example is:

declare context item as element(sys:log) external
   := doc("/var/xlogs/sysevent.xml");


This will raise an error if the context item is not provided by the host
environment. Perhaps this should be:

declare context item as element(sys:log) external
   := doc("/var/xlogs/sysevent.xml")/sys:log;

-- 
Configure bugmail: https://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 Monday, 12 December 2011 15:16:40 UTC