How do we run XSLT 1 from ant? (In particular, from P5/antbuilder.xml. I tried "trax", but get a fatal “XSLT 1.0 compatibility mode is not available in this configuration”.)
Will Saxon not run XSLT 1.0? I'd have thought it would.
On Sat, Nov 28, 2020 at 7:30 PM Bauman, Syd
How do we run XSLT 1 from ant? (In particular, from P5/antbuilder.xml. I tried "trax", but get a fatal “XSLT 1.0 compatibility mode is not available in this configuration”.)
_______________________________________________ Tei-council mailing list Tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
It is using Saxon … or, at least, that’s what <factory name="net.sf.saxon.TransformerFactoryImpl"/> implies to me. ________________________________ Will Saxon not run XSLT 1.0? I'd have thought it would. How do we run XSLT 1 from ant? (In particular, from P5/antbuilder.xml. I tried "trax", but get a fatal “XSLT 1.0 compatibility mode is not available in this configuration”.)
Turns out we have SaxonHE 9.8.0.5, a version which does not support XSLT 1. The two obvious solutions are to use `xsltproc` instead or update to Saxon 9.8.0.7 (or perhaps later). For the moment I am doing the former. ________________________________ It is using Saxon … or, at least, that’s what <factory name="net.sf.saxon.TransformerFactoryImpl"/> implies to me. ________________________________ Will Saxon not run XSLT 1.0? I'd have thought it would. How do we run XSLT 1 from ant? (In particular, from P5/antbuilder.xml. I tried "trax", but get a fatal “XSLT 1.0 compatibility mode is not available in this configuration”.)
I think if you use the standard XSLT task: http://ant.apache.org/manual/Tasks/style.html and point it at Xalan, that should do it. Cheers, Martin On 2020-11-28 4:30 p.m., Bauman, Syd wrote:
How do we run XSLT 1 from ant? (In particular, from P5/antbuilder.xml. I tried "trax", but get a fatal “XSLT 1.0 compatibility mode is not available in this configuration”.)
_______________________________________________ Tei-council mailing list Tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
-- ------------------------------------- Humanities Computing and Media Centre University of Victoria mholmes@uvic.ca
Thanks Martin (and Hugh)! While I believe you, I don’t actually know how to do that. (I would guess set the factory/@name to either "org.apache.xalan.processor.TransformerFactoryImpl" or "org.apache.xalan.xsltc.trax.TransformerFactoryImpl", but would not know which nor if there are any parameters that need be set.) That said, the <exec> of `xsltproc` solution is working. ________________________________ I think if you use the standard XSLT task: https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fant.apache.... and point it at Xalan, that should do it.
participants (3)
-
Bauman, Syd
-
Hugh Cayless
-
Martin Holmes