[ 
http://issues.apache.org/jira/browse/JCR-217?page=comments#action_12329510 ] 

Ragy Eleish commented on JCR-217:
---------------------------------

I did more research the dependency on xerces is in more files than just QNAME 
they are as follows:

contrib\jcr-ext\src\java\org\apache\jackrabbit\session\SessionNamespaceRegistry.java
contrib\jcr-ext\src\java\org\apache\jackrabbit\xml\DocumentViewExportVisitor.java
org\apache\jackrabbit\core\LocalNamespaceMappings.java
org\apache\jackrabbit\core\NamespaceRegistryImpl.java
org\apache\jackrabbit\core\SessionImpl.java(1009): 
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
org\apache\jackrabbit\core\WorkspaceImpl.java(687): 
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
org\apache\jackrabbit\core\query\lucene\LuceneQueryBuilder.java
org\apache\jackrabbit\core\util\ISO9075.java
org\apache\jackrabbit\name\Path.java
org\apache\jackrabbit\name\QName.java

Most of the dependency is on isValidNCName, with the following exceptions
- SessionImpl and WorkspaceImpl they specify the xerces parser directly.
- ISO9075 and DocumentViewExportVisitor depend on some other methods in the 
Xerces' XMLChar class.


> class org.apache.jackrabbit.name.QName has a hardcoded dependency on Xerces
> ---------------------------------------------------------------------------
>
>          Key: JCR-217
>          URL: http://issues.apache.org/jira/browse/JCR-217
>      Project: Jackrabbit
>         Type: Bug
>     Versions: 1.0
>     Reporter: Ragy Eleish
>     Priority: Critical

>
> The class org.apache.jackrabbit.name.QName, has an unneeded dependency on 
> Xerces which make it difficult to work with the XML parser or ones choice.
> The dependency (on line 246) is on the method "XMLChar.isValidNCName" only. I 
> suggest one of the following solutions
> - Copy the implementation of this method to the QName class, it is a very 
> simple implementation.
> - Use the mehtod provided in JAXP 1.3 javax.xml.XMLUtils.isValidNCName, which 
> will create dependency on JAXP 1.3 though. JDK 1.5 ships with JAXP 1.3
> This dependency is causing us alot of trouble since we need to use another 
> parser that is optimized for large XML data. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to