Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Replace hithighlight tags >Thread Next - Re: Replace hithighlight tags Re: Replace hithighlight tagsTo: NULL Date: 10/7/2005 3:27:00 AM Peter van Schie wrote: > I'm transforming this document to html to display in a browser. Try some XSLT <xsl:template match="searchhit" mode="search-results-with-highlight" > <span style="background: red; padding: 0.125em 0.5em;" ><xsl:apply-templates mode="search-results-with-highlight" /></span> </xsl:template> <xsl:template match="*" mode="search-results-with-highlight" > <!-- This is needed in case of more element structure within <fulltext>, so as to preserve the mode It might even copy some elements (embedded HTML?) to the output --> <xsl:apply-templates mode="search-results-with-highlight" /> </xsl:template> [...] <xsl:apply-templates select="./document/fulltext" mode="search-results-with-highlight" /> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
