This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15143 - [XQuery30] declare context item example
Summary: [XQuery30] declare context item example
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 15:14 UTC by Andrew Eisenberg
Modified: 2011-12-13 04:59 UTC (History)
0 users

See Also:


Attachments

Description Andrew Eisenberg 2011-12-12 15:14:34 UTC
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;
Comment 1 Jonathan Robie 2011-12-13 04:59:10 UTC
Fixed as suggested.