Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xsl] XSL: multiple element come to single parent element [xsl] XSL: multiple element come to single parent elementTo: xsl-list <xsl-list@-----.------------.---> Date: 5/10/2009 2:58:00 AM 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 --~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@l...> --~-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
