Oxygen docs: "How to Use XSLT Extension Points from a Publishing Template"

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Oxygen docs: "How to Use XSLT Extension Points from a Publishing Template"

Post by mdslup »

I'm getting a little lost trying to follow along on this page: https://www.oxygenxml.com/doc/versions/ ... mport.html

It says
The XSLT stylesheet that generates the main page is located in: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.responsive\xsl\mainFiles\createMainPage.xsl. This XSLT stylesheet declares the copy_template mode that processes the main page template to expand its components. The main page template declares a component for the footer section that looks like this:

<div class=" footer-container text-center ">
<whc:include_html href="${webhelp.fragment.footer}"/>
</div>
However, I can not find that code anywhere. When I open up createMainPage.xsl, I see only this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><!--

Oxygen Webhelp plugin
Copyright (c) 1998-2018 Syncro Soft SRL, Romania. All rights reserved.

--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:toc="http://www.oxygenxml.com/ns/webhelp/toc" xmlns:oxygen="http://www.oxygenxml.com/functions" xmlns:index="http://www.oxygenxml.com/ns/webhelp/index" exclude-result-prefixes="#all" version="2.0">

<xsl:import href="createMainPageImpl.xsl"/>

<!--
XSLT extension point for the stylesheet used to produce the main HTML page
in the Webhelp Responsive transformation.
-->


<!-- WH-1439 xsl/com.oxygenxml.webhelp.xsl.createMainPage extension point -->
<xsl:import xmlns:dita="http://dita-ot.sourceforge.net" href="template:xsl/com.oxygenxml.webhelp.xsl.createMainPage"/>
</xsl:stylesheet>
I don't see any section with a div for the footer container.

Is this doc up to date, or am I just getting lost?
radu_pisoi
Posts: 404
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Oxygen docs: "How to Use XSLT Extension Points from a Publishing Template"

Post by radu_pisoi »

Hi,

The main page HTML template location is DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates/wt_index.htm.

More exactly, the div/@class='footer-container' is defined in the footer.xml file from the same folder with wt_index.htm. The footer.xml file is included from wt_index.htm.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply