Closed bwbohl closed 1 year ago
@HelenaSabel, @sydb and I tested this morning, and we would prefer to add the attribute to all 14 calls to xslt in the teianttasks.xml file, which we have done in branch issue-544-classpathref. This passes all Test and Test2 processes. @bwbohl Could you test this branch and see if it does what you need? If it works for you, we'll create a pull request.
will do
sorry for coming back to this so late… works here, many thanks!
Is there anything I can do to get this into the next release ;-) Should I open a PR?
I'm using the TEI Stylesheets as submodule in some non TEI schema development repositories for building the schemata from my ODD definitions. The setup has a project specific ant build.xml that calls the
dist
targetrelaxng/build-to.xml
. As my main repo has its own lib folder with anything needed for building I would like to just submit my classpath-ref to the TEI-anttasks instead of setting up the environment at submodule level. This fails though, because e.g. themacrodef
calledbuildgeneric
relies on saxon being on the JAVA class path. As my repositories are designed to be self sufficient (pulling all build required dependencies, instead of relying on them being on the host JAVA class path) this fails. A easy fix could be provided by adding a@classpathref
to theant:xslt
calls defined inteianttasks.xml
that references theant:path
defined in:https://github.com/TEIC/Stylesheets/blob/1616df8470d0805356d6dc2b4926c81bec37a554/common/teianttasks.xml#L59-L61
e.g.:
This would allow me to submit my project-classpath as ref when calling the build, e.g.:
If you think this would be a valuable addition to the TEI Stylesheets, I'd be happy to file a pull request.