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 29737 - [QT3TS] xml-to-json-061
Summary: [QT3TS] xml-to-json-061
Status: CLOSED INVALID
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-18 11:24 UTC by Tim Mills
Modified: 2016-07-19 14:06 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2016-07-18 11:24:10 UTC
This test imports a schema without specifying an environment with a location hint.

Compare with analyzeString-024.
Comment 1 Michael Kay 2016-07-18 12:04:38 UTC
No location hints should be needed. Se XQuery 4.11

If the target namespace is http://www.w3.org/2005/xpath-functions or[*] then the schemas described in Section C.2 Schema for the result of fn:json-to-xml FO31 and Section 5.6.5 fn:analyze-string FO31 are imported. ...  If the target namespace is http://www.w3.org/2005/xpath-functions, then the implementation must ignore location hints.

* the "or" here is a typo. And the paragraph could be better structured:

<suggestion>
The first URILiteral in a schema import specifies the target namespace of the schema to be imported. The URILiterals that follow the at keyword are optional location hints, and can be interpreted or disregarded in an implementation-dependent way. Multiple location hints might be used to indicate more than one possible place to look for the schema or multiple physical resources to be assembled to form the schema. 

If the target namespace is http://www.w3.org/2005/xpath-functions, then the schemas described in Section C.2 Schema for the result of fn:json-to-xml FO31 and Section 5.6.5 fn:analyze-string FO31 are imported; the implementation must not require any location hints to be provided and must ignore any that are provided.
</suggestion>

I think the analyze-string test cited precedes the introduction of this rule.
Comment 2 Tim Mills 2016-07-19 14:00:20 UTC
Thanks.