Referencing the WebHelp XSLT stylesheets from your customizations

Your customization stylesheets should import the original stylesheets that they override. To reference the WebHelp stylesheets, you can use the plugin:com.oxygenxml.dita-ot.plugin.webhelp prefix. This prefix is rewritten by an XML catalog to the WebHelp root directory.

  1. The XSLT stylesheet that customizes the WebHelp dita2webhelp.xsl stylesheet should look like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:math="http://www.w3.org/2005/xpath-functions/math"
       exclude-result-prefixes="xs math"
       version="2.0">    
       <!--
         Import the original stylesheet used to produce an HTML file for each topic.
       -->
       <xsl:import href="plugin:com.oxygenxml.webhelp.classic:xsl/
                                                dita/classic/dita2webhelp.xsl"/>
       <!--
         Please add your customization templates here.
        -->
    </xsl:stylesheet>
  2. Import the following XSLT stylesheet:
    <xsl:import href="plugin:com.oxygenxml.webhelp.classic:xsl/dita/desktop/dita2webhelp.xsl"/>