Cannot add a paramater

Here should go questions about transforming XML with XSLT and FOP.
mmgHinchey
Posts: 4
Joined: Fri Feb 04, 2022 6:09 pm

Cannot add a paramater

Post by mmgHinchey »

I've been trying to add a paramater to my DOT plugin. I kept getting a XPST0017 error on the oxyf:getParameter functions saying that the functions at http://www.oxygenxml.com/functions could not be found.
I searched the error message and decided to try making ${oxygenHome}/lib/*saxon*9*.jar my primarly library for the webhelp transofmation. I followed the proceduer posted on your forum here: https://github.com/oxygenxml/oxygen-pub ... ive-output.
Now, I'm no longer getting XPST0017 error. Instead, I have this error message:
BUILD FAILED
C:\DITA-OT-3x-WHR-PDF5-Beta\plugins\org.dita.base\build.xml:29: The following error occurred while executing this line:
C:\DITA-OT-3x-WHR-PDF5-Beta\plugins\org.dita.base\build_preprocess.xml:260: java.lang.IllegalStateException: XsltController#setMessageEmitter() is not supported for a configuration that allows multi-threading. Use setMessageFactory() instead
I cannot find anything about "setMessageFactory" or "setMessageEmitter" on this forum. Do you have any suggestions?

Thank you.
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Cannot add a paramater

Post by alin »

Hello,

Which XSLT-Import Extension point are you using in your plugin? It is possible that the oxyf:getParameter function is not available in the context of this extension point.

Please note that the procedure you have mentioned (https://github.com/oxygenxml/oxygen-pub ... ive-output) covers a different use case (i.e.: running the transformation using the Saxon library bundled in Oxygen) and it will not help you overcome the error.

If you want to control the behavior of your DOT plugin using a custom parameter you can declare one using one of the available XSLT-Parameter Extension Points.
You can use the following example in our User Manual as a starting point: Use-Case 2: WebHelp XSLT-Parameter Extension Point to Control if Generation Time is Displayed in the Output.

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply