Subject: Re: [xsl] Comparing with a variable position From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 10 Oct 2002 04:41:05 +0200 |
<xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template>
<xsl:template match="container/text()"> <sub-container> <xsl:value-of select="."/> </sub-container> </xsl:template>
I would like to convert some legacy data of this format :
<container> mixed content1 (thus several nodes are possible) <separator/> mixed content2 <separator/> mixed content3 </container>
into
<container> <sub-container> mixed content1 </subcontainer> <sub-container> mixed content2 </subcontainer> <sub-container> mixed content2 </subcontainer> </container>
I really need an answer.
Thanks a lot
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Comparing with a variable pos, Louis Meigret | Thread | Re: [xsl] Comparing with a variable, Louis Meigret |
[xsl] XSL with multiple levels, Adam Cohen | Date | RE: [xsl] SAX Transformation: Servl, Paul Brown |
Month |