Pages

Showing posts with label XSLT to find the next element's type. Show all posts
Showing posts with label XSLT to find the next element's type. Show all posts

Friday, December 3, 2010

XSLT to find the next element's type


<xsl:template match="//*">        <xsl:for-each select=".">            <xsl:if test=".!=''">            <xsl:apply-templates/>            <xsl:if test="not(boolean(following-sibling::node()[1][self::text()]))"><br/></xsl:if>            </xsl:if>         </xsl:for-each>    </xsl:template>