RE: [xsl] segmenting a paragraph

Subject: RE: [xsl] segmenting a paragraph
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 2 Oct 2007 13:27:03 +0100
> <xsl:template match="note" mode="zap-node">  
> <xsl:text>@@@@@</xsl:text>  <xsl:value-of 
> select="count(preceding-sibling::note)+1"/>
>  <xsl:text>!!!!!</xsl:text>
> </xsl:template>
> 

This is essentially a variant of the approach using saxon:serialize(), which
inserts the strings <note> and </note> instead of @@@@@ and !!!!!.

Michael Kay
http://www.saxonica.com/

Current Thread