- From: <bugzilla@jessica.w3.org>
- Date: Mon, 23 Jan 2017 14:14:39 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30053 Bug ID: 30053 Summary: [FO31]Example for parse-xml-fragment has several syntax errors Product: XPath / XQuery / XSLT Version: Proposed Recommendation Hardware: PC OS: Windows NT Status: NEW Severity: editorial Priority: P2 Component: Functions and Operators 3.1 Assignee: mike@saxonica.com Reporter: martin.honnen@gmx.de QA Contact: public-qt-comments@w3.org Target Milestone: --- The last paragraph in the Examples section of https://www.w3.org/TR/xpath-functions-31/#func-parse-xml-fragment says: The expression fn:parse-xml-fragment('<xml version="1.0" encoding="utf8" standalone="yes"?></a>") results in a dynamic error [err:FODC0006] because the "standalone" keyword is not permitted in the text declaration that appears at the start of an external general parsed entity. The snippet has several syntax errors, the text declaration is missing the question mark in <?xml, the opening single quote ' does not have a matching closing single quote but instead the strings ends with a double quote ", and the markup </a> is also not well-formed. So I think to simply generate the error the example is supposed to demonstrate it needs to be fn:parse-xml-fragment('<?xml version="1.0" encoding="utf8" standalone="yes"?><a/>') -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Monday, 23 January 2017 14:14:48 UTC