[ 
https://issues.apache.org/jira/browse/JENA-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457639#comment-16457639
 ] 

Andy Seaborne commented on JENA-1537:
-------------------------------------

First pass (April 2018): [https://github.com/afs/jena-xerces]

Produced by taking the Apache Xerces source, cutting out packages not related 
to datatypes, then putting back necessary common classes.

It passed the tests in {{org.apache.jena.datatypes}}.

One feature omitted: {{XSDDatatype.loadUserDefined}}. These functions parse XSD 
scheme datatype definitions. The implementation calls into the internal XML 
parsing which would not be legal in Java9 modules if using the JDK built-in 
parser. It seems to need a fairly complete XML parser engine.

We should consider dropping this feature.

Example: (from Jena's test suite):
{noformat}
<xsd:simpleType name="over17">
  <!-- values must be >= 18 -->
  <xsd:restriction base="xsd:positiveInteger">
  <xsd:minInclusive value="18"/>
  </xsd:restriction>
</xsd:simpleType>
{noformat}

> Remove requirement for Apache Xerces.
> -------------------------------------
>
>                 Key: JENA-1537
>                 URL: https://issues.apache.org/jira/browse/JENA-1537
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Datatypes, RDF/XML
>            Reporter: Andy Seaborne
>            Priority: Major
>
> Apache Xerces is used for parsing and also for dataype support.
> We can switch to the JDK built-in XML parser (which is actually a forked 
> Xerces).
> For jena-core datatype, we can extract the necessary code from Xerces and put 
> it in Jena (repackaged).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to