[xsl] Combine content of separate elements

Subject: [xsl] Combine content of separate elements
From: "Cutter" <cutter1994@xxxxxxxxx>
Date: Tue, 14 Nov 2006 16:53:14 -0500
<para>This is the start of a paragraph.  Then a page break occurs.  The
<table id = "2"/>
<table id = "3"/>
<para2>continues here.</para2>

I want to combine the content of <para2> with <para>.  The problem is that
there can be any type of elements as a following-sibling between a <para>
and a <para2> except another <para> or <para2>.  What I want to do is
combine the content of a <para> with the next <para2> but only if another
<para> do not occur between the first <para> and <para2>.

Here's what I currently have:
<xsl:if test="following-sibling::pageBreak[following-sibling::para2]">

This outputs with the <para2> content in every <para> that precedes a

The stylsheet I am using is 2.0 but I haven't figured out what 2.0 feature
will let me do this easily.

Thanks the help. 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006
8:56 PM

Current Thread