|
Subject: Re: [xsl] How to show context of term in text document? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 02 May 2007 18:42:35 +0200 |
I want to show the 5 words before and after "nutrient":
... The aforementioned oxygenated *nutrient* emulsion (using the fluorocarbon FC-80) ...
<xsl:template match="z:e">
<xsl:value-of select="preceding-sibling::text()" />
<b>
<xsl:value-of select="." />
</b>
<xsl:value-of select="following-sibling::text()" />
</xsl:template>
Cheers, -- Abel Braaksma
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to show context of te, David Carlisle | Thread | Re: [xsl] How to show context of te, Mukul Gandhi |
| Re: [xsl] Help moving away from nam, Steve | Date | RE: [xsl] XSL History, Michael Kay |
| Month |