WebHelp Responsive XSLT customization: overriding original

tmakita
Posts: 69

WebHelp Responsive XSLT customization: overriding original

Sat May 06, 2017 4:30 pm

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: 69

Re: WebHelp Responsive XSLT customization: overriding original

Sun May 07, 2017 3:38 pm

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/
--------------------------------------------------*/

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests