Search, XSLT with @xml:id constructors, and index configuration
Posted by mholmes on 07 Feb 2017 in Activity log
Things learned today:
- When you create fields in a range index in exist, give them unique and unusual names. I had one called "name", and it was borking the indexing completely (stuff ended up indexed that shouldn't be).
- In XSLT, do NOT use short-form attribute constructors for @xml:* attributes. It's not illegal, but it's inadvisable, and it causes your XSLT document to be unfriendly to XML parsers which will complain that the @xml:id attribute is not a QName. Use the explicit xsl:attribute constructor. This was preventing me from uploading XSLT into eXist, so I've refactored all the static build XSLT to solve it.
- There's a bug in the Agas Map static output (and possibly elsewhere) which you can see by finding ABBE2, then clicking on "Harben" in its popup. This is an issue relating to links in AJAX-imported content, and may require that AJAX content be processed a bit before being displayed.
- Simple is good when it comes to search. One drop-down for "Search In" is all we need.