This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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;
Fixed as suggested.