Cannot add a paramater
Here should go questions about transforming XML with XSLT and FOP.
-
- 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.
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.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Cannot add a paramater
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
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
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service