Subject: [xsl] XSL: multiple element come to single parent element From: Selva Ganesh <selvaganesh1985@xxxxxxxxx> Date: Sun, 10 May 2009 08:27:17 +0530 |
Hi All, In my question is every <div> opened new <enacting-words>, actually I need for all <div> come to one parent <enacting-words>, how to write the xsl This is XSL: <xsl:template match="div[@class[.='LegEnactingText']]/p"> <enacting-words> <enacting-text><xsl:value-of select="."/></enacting-text> </enacting-words> </xsl:template> This my input: <div class="LegEnactingText"> <p class="LegText">The Secretary</p> </div> <div class="LegEnactingText"> <p class="LegText">vfgdhdf dfhdsgh </p> </div> <div class="LegEnactingText"> <p class="LegText">dffsg gsdfg sdghds</p> </div> ... ... <div class="LegEnactingText"> <p class="LegText">sgg dgfg dgfgd</p> </div> What i need: <enacting-words> <enacting-text>The Secretary</enacting-text> <enacting-text>vfgdhdf dfhdsgh </enacting-text> <enacting-text>dffsg gsdfg sdghds</enacting-text> ... ... <enacting-text>sgg dgfg dgfgd</enacting-text> </enacting-words> Thanks in advance, Selva
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to use xsl:substring-befo, Selva Ganesh | Thread | Re: [xsl] XSL: multiple element com, Martin Honnen |
[xsl] How to use xsl:substring-befo, Selva Ganesh | Date | [xsl] how to "print" xsl:element re, Mtekel |
Month |