New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set via "plugin.xml" system property to xslt task inside pipeline [DOT 2.0.1] #1859
Comments
The |
I know but if it looks like a duck... |
The problem I see with |
The XsltModule could be refactored to use S9API instead of JAXP if S9API has a way to set variables for |
A use-when can also use the value of a static xsl param: http://www.saxonica.com/html/documentation/xsl-elements/param.html and it seems to be supported since Saxon 9.5. But it would mean that our plugin would not be able to run in a DITA OT which comes with Saxon 9.1. Another option would be if the version of the DITA Open Toolkit would be available as a system property in the entire JVM. Unfortunately you cannot set in ANT a system property from the build file. Maybe set that version system property from one of the Java extensions and it will probably remain until the end specified in the JVM. |
This issue has been automatically marked as stale because it has not been updated recently. It will be closed soon if no further activity occurs. Thank you for your contributions. |
Hi @raducoravu, @jelovirt , Hope you are doing well... I am running dita-ot 3.2.1 on a Mac system, and while creating a custom transformation that runs transform.topic2fo.main from pdf2 plug-in, I noticed that org.dita.pdf2/build.xml: <target name="transform.topic2fo.main">
...
<pipeline>
<xslt style="${temp.transformation.file}" in="${dita.temp.dir}/stage1.xml" out="${dita.temp.dir}/stage2.fo">
...
<param name="dita.input.filename" expression="${dita.input.filename}" if="dita.input.filename"/>
--> <sysproperty key="pdf.formatter" value="${pdf.formatter}"/>
<xmlcatalog refid="xml.catalog"/>
</xslt>
</pipeline>
</target> Error message:
Is there other work-around other than commenting out Thank you! |
@raducoravu, @jelovirt I have updated to latest version, 3.3, the issue sysproperty is gone, and I am able to run pdf transformation. Thank you! |
In my plugin.xml I add this:
which points to an XML file containing this:
which means that the "build_preprocess.xml" will contain something like:
and the publishing will fail like:
although usually an XSLT ANT task can contain sysproperty items inside it.
What I am trying to do is to add some xsl-when conditions in the XSLT code in order to try and make a plugin work with both DITA OT 1.8 and 2.0.1.
The text was updated successfully, but these errors were encountered: