[xsl] DocBook and the JDK built-in XSLTC

Subject: [xsl] DocBook and the JDK built-in XSLTC
From: "Elliotte Rusty Harold elharo@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 1 Nov 2025 19:34:35 -0000
I'm trying to port some DocBook builds from Saxon to the JDK's bundled
XSLTC to reduce the dependency footprint and build requirements. These
are fairly straight-forward DocBook documents and the 1.79.2 XSLT 1.0
stylesheets for same. It all worked reasonably well with Saxon 6.5.
With the JDK implementation it fails like this:

Caused by: java.lang.NullPointerException
    at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.referenceToNodeSet(BasisLibrary.java:1024)
    at docbook.l10n$dot$language()
    at docbook.topLevel()
    at docbook.transform()
    at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:624)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:732)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:345)
    ... 3 more


Does this look familiar to anyone? Is anyone using the JDK XSLT engine
with DocBook?


-- 
Elliotte Rusty Harold
elharo@xxxxxxxxxxx

Current Thread