Subject: Re: [xsl] iterate through nodes and determine output by node type From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 01 Oct 2007 18:41:39 +0200 |
I'd like to test all child elements of a body tag and wrap any text nodes (that can contain child elements itself)in a p tag and <apply-templates /> to any element nodes.
Using XSLT 1.1
<xsl:template match="*" mode="make-lower"> <xsl:element name="{lower-case(local-name())}"< <xsl:apply-templates select="node() | @*" /> </xsl:element> </xsl:template>
<xsl:template match="node() | @*" mode="make-lower"> <xsl:copy /> </xsl:template>
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] iterate through nodes and, Scott Trenda | Thread | Re: [xsl] iterate through nodes and, Mario Madunic |
RE: [xsl] iterate through nodes and, Mario Madunic | Date | RE: [xsl] iterate through nodes and, Scott Trenda |
Month |