Search code examples
htmldocbook

DocBook with WebHelp - can you specify a page anchor at the root of the HTML page and find it deep in the document?


I am using WebHelp to render my DocBook document.

Within my DocBook file, if I have an anchor as follows:

<anchor id="thisIsSomeExample" />

I am able to reach it within my WebHelp render using a URL such as:

http://localhost:8080/MyWebHelpProject/book/pages/ch01s01.html#thisIsSomeExample

This is great, but what I really want to be able to do is find that anchor, irrespective of what section of whatever chapter is currently open on my screen:

http://localhost:8080/MyWebHelpProject/book/pages/#thisIsSomeExample

Is this possible?

Edit: Following the sound suggestion of @Sitapati Das to render the entire document in one page I must add that we require to split the document up by chapter. The document is very large (over 300 pages when printed in A4).


Solution

  • This would be possible if you render your help file as html-single, and use unique anchor IDs.