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 19578 - fn:parse-xml return type (editorial)
Summary: fn:parse-xml return type (editorial)
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Proposed Recommendation
Hardware: PC All
: 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: 2012-10-17 15:07 UTC by Josh Spiegel
Modified: 2012-10-17 15:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Josh Spiegel 2012-10-17 15:07:15 UTC
Section 14.9.1, fn:parse-xml

Signature: fn:parse-xml($arg as xs:string?) as document-node(element(*))

Rules:
  "If $arg is the empty sequence, the function returns the empty sequence."

If the function may return the empty sequence, the return type should instead be "document-node(element(*))?"
Comment 1 Michael Kay 2012-10-17 15:21:20 UTC
Thanks, fixed in the source XML and committed.