WebHelp Responsive XSLT customization: overriding original

Post here questions and problems related to editing and publishing DITA content.
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

WebHelp Responsive XSLT customization: overriding original

Post by tmakita »

Hi

I'm trying to customize Web Help Responsive XSLT stylesheet.
According to the following web, I can override the original stylesheet by specifying follows:

Overriding a WebHelp XSLT Stylesheet from an Ant Build File
https://www.oxygenxml.com/doc/versions/ ... tomization

Code: Select all

 <xsl:import href="plugin:com.oxygenxml.dita-ot.plugin.webhelp:xsl/
dita/responsive/dita2webhelp.xsl"/>
I copied the webhelp plug-in to the newest DITA-OT 2.4.6 for testing. But the dita-ot-2.4.6/catalog-dita.xml has following entry:

Code: Select all

<rewriteURI uriStartString="plugin:com.oxygenxml.dita-ot.plugin.webhelp:" rewritePrefix="plugins/com.oxygenxml.webhelp/"/>
So the references to the original stylesheet cannot be resolved because "plugin:com.oxygenxml.dita-ot.plugin.webhelp:xsl" is not defined in catalog file.

Moreover modifying above to following causes Saxon validation error.

Code: Select all

<xsl:import href="plugin:com.oxygenxml.dita-ot.plugin.webhelp/xsl/dita/responsive/dita2webhelp.xsl"/>

Code: Select all

System ID: D:\DITA-OT\dita-ot-2.4.6\plugins\com.rolanddg.webhelp\xsl\rdgDita2webhelpCustom.xsl
Main validation file: D:\DITA-OT\dita-ot-2.4.6\plugins\com.rolanddg.webhelp\xsl\rdgDita2webhelpCustom.xsl
Scenario name: XSLT
Document type: XSLT
Engine name: Saxon-PE 9.7.0.15
Severity: fatal
Description: Malformed URL plugin:com.oxygenxml.dita-ot.plugin.webhelp/xsl/dita/responsive/dita2webhelp.xsl(base file:/D:/DITA-OT/dita-ot-2.4.6/plugins/com.rolanddg.webhelp/xsl/rdgDita2webhelpCustom.xsl): unknown protocol: plugin
Start location: 10:103
How do I solve this issue??
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

Re: WebHelp Responsive XSLT customization: overriding original

Post by tmakita »

Now original notation woks and validation has been succeeded!

Code: Select all

<xsl:import href="plugin:com.oxygenxml.dita-ot.plugin.webhelp:xsl/dita/responsive/dita2webhelp.xsl"/>
Probably there is my project setting problem about DITA-OT catalog file.
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply