How can I remove List of Tables from start page of my WebHel

tuehling
Posts: 9
Joined: Wed Aug 21, 2013 5:33 pm

How can I remove List of Tables from start page of my WebHel

Post by tuehling »

Greetings,

I am using oXygen Author to generate DocBook WebHelp (old). I have to use the old WebHelp because the "new" transformation WebHelp won't open properly within a VisualForce page (tabs stop working - perhaps due to an ID conflict). When I generate the WebHelp, the starting page always includes a "List of Tables". I've been searching for a way to get rid of this table and it seems the solutions I can find relate to using the new DocBook WebHelp transformation. How can I remove this table? I'm still pretty new to oXygen and the DocBook syntax. Thanks!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How can I remove List of Tables from start page of my We

Post by sorin_ristache »

Hello,

My recommendation is to use this "new" WebHelp transformation because it generates valid XHTML pages. There is no ID conflict. I am not familiar with VisualForce so I don't know how it's supposed to display the output of the DocBook WebHelp transformation (the "new" one), but you can test the "new" WebHelp output in any Web browser to see how it should work. Maybe the JavaScript code in the WebHelp pages trips up VisualForce?

If you need to remain with the WebHelp (old) transformation you should locate and bypass the area of the XSLT code in the file that creates the List of Tables section.

I tried the WebHelp (old) transformation on a sample Docbook XML document but I don't see any List of Tables section on the start page or on the other pages of the WebHelp output. My Docbook XML document does contain a couple of tables. Please can you post a screenshot (or send us a screenshot) of your WebHelp (old) output loaded in a Web browser (Chrome, Firefox, Safari, etc) in order to see the location of the List of Tables section in the WebHelp page?


Regards,
Sorin
tuehling
Posts: 9
Joined: Wed Aug 21, 2013 5:33 pm

Re: How can I remove List of Tables from start page of my We

Post by tuehling »

Thank you. I submitted a screen shot via the link you provided. Since you didn't see any tables on your start page, I suspect this has something to do with the way I have organized my document. As a newbie, there's a high probability I've done something goofy.

As a quick work around I added:

Code: Select all

.list-of-tables {
display: none;
}

to positioning.css although that will hide all of my List Of tables. That is fine in my case.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How can I remove List of Tables from start page of my We

Post by sorin_ristache »

Hi,

You can bypass the List of Tables by commenting out (or just modifying a condition inside) the template called "list.of.titles" in the file [OXYGEN-INSTALL-DIR]\frameworks\docbook\xsl\xhtml\autotoc.xsl. It works for any other list (List of Figures, List of Examples, etc.) because all lists are created by this template. The template starts at line 623 in the file autotoc.xsl:

Code: Select all


<xsl:template name="list.of.titles">
<xsl:param name="toc-context" select="."/>
<xsl:param name="titles" select="'table'"/>
<xsl:param name="nodes" select=".//d:table"/>
. . .

Regards,
Sorin
tuehling
Posts: 9
Joined: Wed Aug 21, 2013 5:33 pm

Re: How can I remove List of Tables from start page of my We

Post by tuehling »

Thank you for the specific instructions (including line number!). That worked perfectly.
Post Reply