Altova Mailing List Archives
>xsl-list Archive Home
>Thread Prev -
>Thread Next - Re: [xsl] Search highlighting using xslt 2.0
RE: [xsl] Search highlighting using xslt 2.0
Date: 3/24/2004 6:08:00 AM
> Yes. Use Lucene (if I remember correctly, you are a java guy). Thanks Rob. I will have at better look at Lucene and see what its capable of. The indexing and search results for the system Im working on is already complete, we just have a few issues with the term highlighting. Certain parts of the result xhtml shouldn't be included in the highlighting, for example: I render tables with static headers by rendering a table, then repeating the table header and moving it up to give the appearance the table header is fixed. <table> <thead> <td>this is the header</td> </thead> <tbody> <td>this is the body</td> ... </tbody> </table> <table> <thead> <td>this is the header</td> </thead> </table> Notice the table's header is repeated in a separate table. If the first table is scrolled, its header will scroll with it. By moving the second table up using dhtml expressions, I can give the impression that the table header is static (the code is rather nice, if anybody's interested). This means there are effectively two copies of the same information. We currently use special delimiters to tell our search highlighting code not to include the first table's header in the highlighting regex, but I would like to use the markup instead. Can Lucene handle this (I will check)? If I did the highlighting using xslt, I would have control over which parts of the xhtml I wanted to apply the highlighting to. I'm just wondering if the new features in 2.0 make this sort of thing feasible...