xsl-list
[Top] [All Lists]

RE: Grouping Adjacent Elements in XSLT 1.0 and Duplicates

2004-10-21 07:56:35
Thanks Anton and Jeni, works great.

-Joe



   <xsl:template match="ol_li">
       <xsl:if test="not(preceding-sibling::*[1][self::ol_li])">
           <ol>
               <xsl:apply-templates select="." mode="li"/>
           </ol>
       </xsl:if>
   </xsl:template>

   <xsl:template match="ol_li" mode="li">
       <li><xsl:apply-templates/></li>
       <xsl:apply-templates  
select="following-sibling::*[1][self::ol_li]" mode="li"/>
   </xsl:template>



<Prev in Thread] Current Thread [Next in Thread>