[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Table formatting challenge

Subject: Re: Table formatting challenge
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: 16 Jul 2001 08:10:56 -0400
Re:  Table formatting challenge
/ David Carlisle <davidc@xxxxxxxxx> was heard to say:
| Actually Norm contacted me off the list over the weekend,  I'm not
| totally familiar with the American idiom, but I think it translated as
| a comment that my code, whilst technically correct, was not as general
| as perhaps required.

Yeah, that's one translation :-)

| So here's a second version that isn't as elegant as the first but is
| more general (although as written it only copes with row spans in single
| figures)

By "single figures", do you mean row spans less than 10 or something
else?

Anyway, this code doesn't quite seem to work. In particular, for

<informaltable>
<tgroup cols="4">
<colspec colname="c4b" colnum="4"/>
<tbody>
<row>
  <entry>A</entry>
  <entry>B</entry>
  <entry morerows="2">C</entry>
  <entry morerows="2">D</entry>
</row>
<row>
  <entry morerows="2">E</entry>
  <entry>F</entry>
</row>
<row>
  <entry>G</entry>
</row>
<row>
  <entry>H</entry>
  <entry namest="c4b">I</entry>
</row>
</tbody>
</tgroup>
</informaltable>

It produces too-many extra cells:

<table border="1">
   <tr>
      <td>A</td>
      <td>B</td>
      <td rowspan="3">C</td>
      <td rowspan="3">D</td>
   </tr>
   <tr>
      <td rowspan="3">E</td>
      <td>F</td>
      <td class="auto-generated">extra</td>
      <td class="auto-generated">extra</td>
   </tr>
   <tr>
      <td>G</td>
      <td class="auto-generated">extra</td>
      <td class="auto-generated">extra</td>
   </tr>
   <tr>
      <td>H</td>
      <td class="auto-generated">.</td>
      <td>I</td>
   </tr>
</table>

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@xxxxxxx   | Waste no more time arguing what a good man
XML Standards Engineer | should be. Be one.--Marcus Aurelius
Technology Dev. Group  | 
Sun Microsystems, Inc. | 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.