On 10/04/2026 12:46, Mukul Gandhi wrote:
Hi Alan,
I agree with you on points mentioned by you within your preceding
mail (the mail below) within this mail thread.
I've actually now, uploaded this JEP's draft document at location
https://urldefense.com/v3/__https://xalan.apache.org/xalan-j/xsl3/xalan_java_xslt3.0_jep_request_draft.md__;!!ACWV5N9M2RV99hQ!Obcy2_DCUUFK81xZwTqv4GRRyw8KrWBIzD-JNbY1if9giqemBIQDhW0yRYN4fiQzlyfs0keElSAwP-03$
which should be easily accessible instead of as an attachment to the
mailing list (One of mailing list members wrote me off list, that
attachments to this list are banned).
I think, that being able to use javax.xml APIs to do XSLT 3.0
transformations may be a win-win situation for Xalan users. The
existing javax.xml TrAX API can only run XSLT 1.0 transformations. The
TrAX transformer factory value to use Xalan XSLT 3.0 processor has
changed to org.apache.xalan.processor.XSL3TransformerFactoryImpl with
the value of its key remaining the same
(javax.xml.transform.TransformerFactory).
An example of complete use of Xalan XSLT 3.0 TrAX API is available
within the class
https://urldefense.com/v3/__https://github.com/apache/xalan-java/blob/xalan-j_xslt3.0_mvn/src/test/java/org/apache/xalan/tests/util/XslTransformTestsUtil.java__;!!ACWV5N9M2RV99hQ!Obcy2_DCUUFK81xZwTqv4GRRyw8KrWBIzD-JNbY1if9giqemBIQDhW0yRYN4fiQzlyfs0keEleFLAa-j$
I'm curious, whether OpenJDK's javax.xml TrAX API can be enhanced to
support both Xalan XSLT 1.0 and XSLT 3.0. May be a new JEP could be
right for this requirement.
The draft JEP (attached to your first mail) makes no mention of changes
to the javax.xml.transform API. The code example seems to be using a mix
of javax.xml and org.apache.xalan APIs.
I think it would be useful to get a summary of what works and doesn't
work when Xalan-J XSLT 3.0 is deployed on the class path or module path
as a service provider. Assume the application code restricts itself to
the javax.xml APIs, can it get a Transformer from a source that is XSLT
2.0 or 3.0? I'm trying to set a sense as to whether there are API
changes or not.
-Alan