|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL: multiple element come to single parent element
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








