I was not much taken by Kate Moir's response about Xara not considering how to incorporate a "Help authoring tool"/Search capability into its designs: https://www.talkgraphics.com/showthr...509#post643509.

Xara already a Table of Contents capability, which only covers its Heading Styles: https://helpandsupport.xara.com/xara...rting_toc.html.

Here is one approach that is more flexible:
  • Trawl through the exported document (It needs to be Scroll or Transitions or Presentation) and find all the SPANs.
  • Check there is some text that the SPAN will display and give it an ID, if none exists.
  • Build up an HTML <table> with a link in each row back to the ID.
  • Make the <table> sortable and filterable.

I took a random Help chapter and created <table> columns for ID, Keywords and the SPAN's text.
The Keywords were set lowercase and stripped of punctuation, duplicates and common words.

Here is the result: JS-Search Box.xar.

Now I would not inflict the entire Help Manual on anyone like this as the <table> compilation takes a time. Kate has promised a PDF anyhow.
Rather, the mechanism is well-suited for your website without you having to rely on Google having first trawled it.

I originally set up the collection to find Caption text where I used :: as a marker.
The code for this was: var searchTerms = document.querySelectorAll('[title*="::"]');
Equally, you could code for Heading_1, etc or any other attribute.

Acorn