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[(_at_)class[(_dot_)='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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--