Oxygen Webhelp 21.1 - Server

axhxu
Posts: 30
Joined: Thu Aug 27, 2015 9:28 pm

Oxygen Webhelp 21.1 - Server

Post by axhxu » Thu Sep 12, 2019 5:47 pm

Hi,
I am trying to get the latest Oxygen Webhelp Release to work on our server for publication generation (ixiasofts' cms output generator). I have installed DITA-OT 3.3.1 on our server and tried implementing the latest webhelp plugins.

Note : I have the 20.1 one version running using dita-ot 2.5.4 and I managed to get webhelp running in dita-ot 3.1.

i keep getting the following error:

Code: Select all

 [pipeline] Static error near {...ate:evaluate($xpathExpressi...} in expression in xsl:copy-of/@select on line 227 column 80 of macroExpander.xsl:
 [pipeline]   XPST0017: Cannot find a 1-argument function named
 [pipeline]   {java:com.oxygenxml.dita.xsltextensions.Evaluate}evaluate(). Reflexive calls to Java
 [pipeline]   methods are not available under Saxon-HE

And the following build error message:

Code: Select all

com.oxygenxml.webhelp.responsive\build_dita.xml:924: java.lang.RuntimeException: Failed to compile stylesheet 'D:\sApps\Ixiasoft\OutputGenerator\OG_4.4\data\dita-ot-3.3.1\plugins\com.oxygenxml.webhelp.responsive\xsl\dita2webhelp\dita2webhelp.xsl': net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
I have tried adding the saxon-9.1.0.8.jar and saxon-9.1.0.8-dom.jar which was how I got the webhelp to work in 3.1, but no fix.

I have even tried adding licensed version of saxon both the 9.8 PE and 9.8 EE and still the same error.

Any help would be greatly appreciated.

Radu
Posts: 6589
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen Webhelp 21.1 - Server

Post by Radu » Wed Sep 18, 2019 2:54 pm

Hi,

Did you download our WebHelp plugins which are specific for DITA OT 3.x from here?

https://www.oxygenxml.com/xml_webhelp/d ... bhelp.html

you should copy all those plugins to the DITA OT "plugins" folder, or at least the "com.oxygenxml.common" and "com.oxygenxml.webhelp.common" and "com.oxygenxml.webhelp.responsive" plugins.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

axhxu
Posts: 30
Joined: Thu Aug 27, 2015 9:28 pm

Re: Oxygen Webhelp 21.1 - Server

Post by axhxu » Thu Sep 19, 2019 5:13 pm

I got it to work.

I had to make a change in macroExpander.xsl:

Code: Select all

 <whc:macro-xpath-result>
                <xsl:for-each select="$xpathContextNode">
                    <xsl:copy-of select="Evaluate:evaluate($xpathExpression)"/>
                </xsl:for-each>
            </whc:macro-xpath-result>
to

Code: Select all

<whc:macro-xpath-result>
                <xsl:for-each select="$xpathContextNode">
                    <xsl:copy-of select="saxon:evaluate($xpathExpression)"/>
                </xsl:for-each>
            </whc:macro-xpath-result>

Post Reply