Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Replace hithighlight tags

From: "Peter van Schie" <vanschie.peter@-----.--->
To: NULL
Date: 10/4/2005 2:21:00 PM
Hi all,

Give an xml document that looks something like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl"
href="http://localhost/archiefassistent/xsl/fulldoc.xsl"?>
<result>
 <currentpage>1</currentpage>
 <document id="5">
   <fulltext>This module is the <searchhit>third</searchhit> in the
OPPS series. More text...</fulltext>
  </document>
</result>

I'm transforming this document to html to display in a browser. The xml
document is a searchresult and the <searchhit></searchhit> tags
surround the terms that were searched for. Now I'd like to transform
the <searchhit> and </searchhit> tags into something like <span
style="background: red;"> and </span>, to highlight the searchterms in
the resultview.

Is this possible? And if yes, could you give me some pointers as to
how?
Thanks.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent