[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Search highlighting using xslt 2.0

Subject: RE: Search highlighting using xslt 2.0
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Wed, 24 Mar 2004 16:08:00 -0000
static table header
> 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...

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.