xsl-list
[Top] [All Lists]

RE: How to output open/close tags independently?

2002-12-27 08:59:30
I wrote -

<xsl:template match='x'>
<w>
      <xsl:copy-of select='.'/>
      <xsl:copy-of select='following-sibling::x[$modulus >
position()]'/>
</w>
</xsl:template>

I wrote it this way to illustrate the point, but it could have been even
simpler -

<xsl:template match='x'>
 <w>
        <xsl:copy-of 
        select='following-sibling::x[$modulus >= position()]'/>
 </w>
</xsl:template>

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list