Project

Profile

Help

Bug #3017

closed

Schema for the fn namespace

Added by Michael Kay over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2016-11-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

At one time the schemas for analyze-string() and for json-to-xml() were in different namespaces. In consequence of their separate origins, we have a schema for analyze-string() as a "born binary" schema constructed by the class FnNamespaceSchema, and a schema for json-to-xml() as an actual XSD document json.xsd issued as source in the data folder of the JAR file.

The class FnNamespaceSchema appears to be referenced only from unit tests, not from anywhere in the product, which means that this schema is never going to be built in response to an "import schema" declaration of any kind. There is a commented-out method EnterpriseConfiguration.addSchemaForFnNamespace() that would use it if it were not commented out.

The method EnterpriseConfiguration.addSchemaForBuiltInNamespace(), when given the FN namespace URI as an argument, appears to load only the json.xsd schema.

We should probably combine the two schemas for the FN namespace into one document and issue that in the data directory. It should probably be an SCM file rather than an XSD file, for performance reasons.

Please register to edit this issue

Also available in: Atom PDF