Hi All
I wish to mix and match different page layouts depending on the XML stream that is being transformed into PDF. Here is the XML data structure:
<PAGE>
<STUDY> <!-- Only one entry -->
<DESCRIPTION/>
<Other study related attributes...>
<SCHEDULES>
<SCHEDULE> <!-- Many Schedule elements -->
<DESCRIPTION/>
<Other schedule related attributes...>
<ITEMS>
<ITEM> <!-- Many Item elements -->
<DESCRIPTION/>
&nb
sp; </ITEM>
<ITEM>
<DESCRIPTION/>
</ITEM>
<ITEMS>
</SCHEDULE>
<SCHEDULE>
<DESCRIPTION/>
<Other schedule related attributes...>
<ITEMS>
<ITEM> <!-- Many Item elements -->
&n
bsp; <DESCRIPTION/>
</ITEM>
<ITEM>
<DESCRIPTION/>
</ITEM>
<ITEMS>
</SCHEDULE>
<SCHEDULES>
</STUDY>
</PAGE>
Briefly - there can only be one <STUDY>, but the Study can contain many <SCHEDULE>s and the Schedule can contain many <ITEM>s.
For the <STUDY> and its attributes I require a single-column region-body, for the <SCHEDULE> attributes I also require a single-column region-body, but for the <ITEM>s I require column-count="2" for the region-body.
How can I loop through the XML stream using <xsl:for-each select="SCHEDULE"> and toggle between the two page layouts?
Thanks in advance, regards
Richard