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 30133 - [FO31]Example in https://www.w3.org/TR/xpath-functions-31/#func-exists is incomplete
Summary: [FO31]Example in https://www.w3.org/TR/xpath-functions-31/#func-exists is inc...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-03 11:20 UTC by Martin Honnen
Modified: 2017-09-07 17:30 UTC (History)
1 user (show)

See Also:


Attachments

Description Martin Honnen 2017-07-03 11:20:27 UTC
https://www.w3.org/TR/xpath-functions-31/#func-exists in the "Examples" section has the following lines:

---------------------------------------------

Assuming $in is an element with no children:

               let $break := 

               return fn:exists($break)
            
The result is true().

-------------------------------------------

The right hand side in the "let $break :=" appears to be missing.
Comment 1 Michael Kay 2017-07-11 15:05:19 UTC
The example was intended to read

let $break := <br/>
               return fn:exists($break)

(though where $in fits into that is anyone's guess)
Comment 2 Andrew Coleman 2017-07-14 10:21:54 UTC
The working group agrees.

ACTION A-669-01: MK to prepare an erratum for Bug 30133, prepare new 
errata document. ETA 29 August.
Comment 3 Andrew Coleman 2017-09-07 17:30:41 UTC
Resolved in errata document.
https://www.w3.org/XML/2017/qt-errata/xpath-functions-31-errata.html#E1