HI All,

I am facing one problem that i have to do a vertical span for the table columns. But i am not getting any way to solve this problem. My input xml is as follows:-

<tabular frame="all" colsep="1" rowsep="1" orient="port" id="ctab1">

<tgroup cols="3" tgroupstyle="tabular" colsep="1" rowsep="1" align="left" charoff="50" char=".">

<colspec colnum="1" colname="1" align="left" colwidth="0.656in" colsep="1">

</colspec>

<colspec colnum="2" colname="2" align="left" colwidth="4.344in" colsep="1">

</colspec>

<colspec colnum="3" colname="3" align="left" colwidth="4.344in" colsep="1">

</colspec>

<tbody valign="top">

<row rowsep="1">

<entry colname="1" morerows="2" rotate="0" valign="top" align="left">

<para>A1</para>

</entry>

<entry colname="2" morerows="0" rotate="0" valign="top" align="left">

<para>B1 </para>

</entry>

<entry colname="3" morerows="0" rotate="0" valign="top" align="left">

<para>C1 </para>

</entry>

</row>

<row rowsep="1">

<entry colname="1" morerows="0" rotate="0" valign="top" align="left">

<para>A2</para>

</entry>

<entry colname="2" morerows="0" rotate="0" valign="top" align="left">

<para>B2</para>

</entry>

<entry colname="3" morerows="0" rotate="0" valign="top" align="left">

<para>C2</para>

</entry>

</row>

<row rowsep="1">

<entry colname="1" morerows="0" rotate="0" valign="top" align="left">

<para>A3</para>

</entry>

<entry colname="2" morerows="0" rotate="0" valign="top" align="left">

<para>B3</para>

</entry>

<entry colname="3" morerows="0" rotate="0" valign="top" align="left">

<para>C3</para>

</entry>

</row>

</tbody>

</tgroup>

</tabular>

And the output should be like that:-

A1 B1 C1
B2 C2
B3 C3


So please provide me any example of xslt that can display this table in WordML.


Thank you

Regards

Shahab Uddin Abbasi
Software Developer

Here is the thread section of the modified table; the rest of the table is as described in Section 11.4, “Horizontal (column) spanning in tables”.
<thead>
<row>
<entry morerows="1" valign="bottom">Month</entry>
<entry morerows="1" valign="bottom">Day</entry>
<entry namest="rise-20" nameend="set-20" align="center">
20&#x00b0; N. Lat.
</entry>
<entry namest="rise-30" nameend="set-30" align="center">
30&#x00b0; N. Lat.
</entry>
</row>
<row>
<entry>Rise</entry>
<entry>Set</entry>
<entry>Rise</entry>
<entry>Set</entry>
</row>
</thead>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.