OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Faster WebHelp XSL


We had to use the webhelp output for a huge XML document (~11MB) doing the chunking to a very high section level. Doing so, more than 1600 html files needed to be generated. After waiting around 5 hours for it to finish we decided to stop it. What was taking time is the generation of the toc tree in the left pane for each html file generated, so we decided to generate it only one time and copy it as needed. Attached are the files showing how we did it preserving the highlighting of the current tree item. Basically we generated an "id" attribute for each tree item and a _javascript_ variable containing the current id for each page. After that the transformation took 45 minutes to finish.

We hope it will be useful.


Maxime Bégnis

Maxime Bégnis
Tél: +33 (0)
5, rue de la Touloubre
13770 Venelles

Attachment: main.js
Description: application/javascript

Attachment: webhelp-fast.xsl
Description: application/xslt

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]