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

How to highlight arbitrary elements depending on xsl:param?

Subject: How to highlight arbitrary elements depending on xsl:param?
From: Jakob <jakob@xxxxxxx>
Date: Thu, 12 Oct 2000 01:24:48 +0200 (MEST)
highlight xsl fo
I have an xsl stylesheet which I'd like to use for plain display of documents
as well as for display of documents containing search hits.  In the latter
case I'd like to highlight elements containing a hit, by outputting some basic
html of the kind <b style='background-color: gold'> and </b> immediately inside
the element.

I know about the GI of the hit element through the value of an <xsl:param
name='matchElement'/>.

What I can't figure out is how to avoid writing <xsl:if> clauses for all the 
many dozens of elements of the DTD.  Surely, there must be a way to just write
on template that fits all?! [Maybe it's just too late.]

Oh, the same problem exists for the actual match value which I retrieve from
<xsl:param name='matchValue'>, and which I would like to highlight, too.

Thank you for any advice you can give,
Jakob.

PS: Please cc me, I'm on the digest list.

---------
Jakob Fix.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.