Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor