
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 <s.bauman@northeastern.edu> 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

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.org%2Fmanual%2FTasks%2Fstyle.html&data=04%7C01%7Cs.bauman%40northeastern.edu%7C27c111d9daea4ba4970708d8940b6194%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C1%7C637422124188862307%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KPxcPHd14xOxDMJeND62cd4ybR4%2BrHFyg3feZBUto8A%3D&reserved=0> and point it at Xalan, that should do it.
participants (3)
-
Bauman, Syd
-
Hugh Cayless
-
Martin Holmes