helpviewer

Mark Erbaugh wrote:

I've used DocBook to create HTMLHelp for use with helpviewer.py included
in the wxPython distribution.

The HTML files generated work fine using Firefox.

In helpviewer, when I click on a link that goes to a different page, the
new page comes us, but I get a warning dialog:

the HTML anchor XXXX does not exist.

In the source page my code is:

<link linkend="XXX">text</link>

On the destination page, I place an id attribute in the title entity:

<title id="XXX">This is the Title</title>

wxHTML is pretty limited on what tags and attributes are supported and used. Try using the standard anchor tag instead, like this:

  <a name="XXX">This is the title</a>

Does using the title tag with an id actually work like an anchor in the browser? Or is it implementing it with some javascript or something added to the generated page?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I don’t think it’s a limitation of wx - I think it’s just invalid HTML. I just re-read “The TITLE Element” from the W3C docs, and I don’t see any reference to adding an id attribute to the title element.

I think helpviewer is performing exactly as it should in this case. The title element is not an anchor.

···

On Sun, Jul 13, 2008 at 12:23 PM, Grant Baillie grant@osafoundation.org wrote:

Probably wx could be considered an “older user agent” :wink: in the sense of the following guideline from the above link:

Use id or name? Authors should consider the following issues when deciding whether to use id or name for an anchor name:

    • The id attribute can act as more than just an anchor name (e.g., style sheet selector, processing identifier, etc.).

    • Some older user agents don't support anchors created with the id attribute.

    • The name attribute allows richer anchor names (with entities).


www.fsrtechnologies.com