WebHelp Responsive XSLT customization: overriding original
Posted: 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
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:
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.
How do I solve this issue??
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"/>
Code: Select all
<rewriteURI uriStartString="plugin:com.oxygenxml.dita-ot.plugin.webhelp:" rewritePrefix="plugins/com.oxygenxml.webhelp/"/>
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