You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "tuxji (via GitHub)" <gi...@apache.org> on 2023/05/03 16:39:26 UTC

[GitHub] [daffodil] tuxji commented on pull request #1012: Update Saxon-HE to 12.2

tuxji commented on PR #1012:
URL: https://github.com/apache/daffodil/pull/1012#issuecomment-1533360489

   I asked ChatGPT if Xerces needs xml-apis on Java 8 and it said:
   
   > No, Xerces does not require the xml-apis library on Java 8, as the necessary XML APIs are included in the standard Java runtime library. The xml-apis library is typically used to provide a consistent set of XML APIs across different Java versions and implementations, but it is not needed on Java 8.
   
   When I asked ChatGPT if Xerces needs xml-apis at all, here's the last thing it said:
   
   > Xerces is designed to work with xml-apis to provide a complete XML processing solution for Java programs. While it is possible to use Xerces without xml-apis, it may require more work to integrate Xerces with other XML-related libraries that depend on xml-apis.
   
   I suspect the real answer is yes, we can exclude xml-apis from Daffodil's dependencies, but we'd better be prepared to do a lot of testing in diverse environments because the whole point of xml-apis is to provide a consistent set of XML APIs in these diverse environments.  Still, Saxon also works in many diverse environments so if it can exclude xml-apis safely, it does seem to me that Daffodil can exclude xml-apis safely too.  
   
   BTW, Daffodil brought in Saxon in order to support daffodil-schematron, but Saxon is an XML processor and XSLT transformer just like Xerces. If you want to eliminate as many unneeded dependencies as possible, Daffodil probably could use Saxon instead of Xerces for everything that Daffodil uses Xerces to do.  However, you would need to replace all of Daffodil's org.apache.xerces.[*] imports, change some calls, find and fix problems, and do a lot of testing for some dubious benefit (although Saxon is maintained and Xerces is not).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org