Concatenate

1. How concatenate the contents of similar elements
1.

How concatenate the contents of similar elements

Wendell Piez



><section>
><p stylename="section" align="justify" fontname="TIMES" fontsize="19"
> bold="on">
>  <string fontname="TIMES" fontsize="19" bold="on">1.(1)Clause 8 (1) (a)
>   of the </string>
>  <string fontname="TIMES" fontsize="19" bold="on" italic="on">More
>   Money for All Amendment</string>
>  <string fontname="TIMES" fontsize="19" bold="on"> is deleted and the
>   following substituted:</string>
></p>
> ... <!-- more 'p' elements -->
></section>
...
>May I have suggestions as to how to concatenate content of the three into
>one, say, 'para' tag?



<xsl:template match="p">
  <para>  
    <xsl:value-of select="."/>
  </para>
<xsl:template>

or <xsl:value-of select="normalize-space()"/>

will get you what you want, since the value of a node is the concatenated string value of all its descendants.