As far as I can tell, Java 1.5 and later all have their "included" version of Apache code moved into com.sun.org.apache, accessed through the standardized APIs (JAXP, TrAX) which allow switching which implementation is used via the appropriate properties.

Unless we are debugging our implementation of those APIs themselves, this *should* mean that we no longer need our old kluges of shoving Xalan onto the bootclasspath or using java.endorsed.dirs to cheat ahead of the copy Oracle/Sun are shipping.

In fact, I believe -Djava.endorsed.dirs was dropped after Java 8 because it was (everyone hoped) no longer needed.


I submit that it may be time to remove that workaround from xalan-test,
and just set the properties appropriately.


See
https://xml.apache.org/xalan-j/usagepatterns.html#plug
https://xml.apache.org/xalan-j/xpath_apis.html
And:
https://search.oracle.com/results?q=jaxp
Also:
https://www.saxonica.com/documentation9.7/index.html#!conformance/jaxp


(SIDE NOTE: Oracle proposed a similar standard, XQJ, for XQuery. But that API is under a "no modifications" non-OSI-compliant license. Saxon solved that by shipping XQJ support as a separate jarfile, which folks could discard if that license was unacceptable. If/when Xalan ever acquires XQuery support, we will need to think about whether and how we can support that.)

--
` /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
  /   https://www.amazon.com/dp/B09WJ3H657/
Caveat: Opinionated old geezer with overcompensated writer's block. May be redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant. Feel free to call him on it.

Attachment: OpenPGP_0xFFBAFF963D937815.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to