Bug 19578 - fn:parse-xml return type (editorial)
fn:parse-xml return type (editorial)
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0
Proposed Recommendation
PC All
: P2 normal
: ---
Assigned To: Michael Kay
Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
  Show dependency treegraph
Reported: 2012-10-17 15:07 UTC by Josh Spiegel
Modified: 2012-10-17 15:21 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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(*))

  "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.