This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DocBook table example modified for XML is broke for me.


 1) Problem Description:

I'm having trouble getting table to render the way that I think
that it should. So I tried the DocBook example. I had to modify
it for Xml. It doesn't render HTML correctly either in that the
first "Horizontal Span" doesn't span c1 and c2. I've included
my example. Did I do something wrong? How can I fix it?

 2) DocBook Xml:    Version 2.0
 3) DocBook Style:  Version 1.40
 4) Style Sheet:    xtchunk.xsl
 5) Xt:             Version 19991105 under Xae
 6) Xp:             Version 0.5 under Xae
 7) Xae:            Version 1.0 beta 6

------------ TEST: Table Example for DocBook Xml ------------------

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//Arbortext//DTD DocBk XML V2.0//EN"
"file:////home/jlf/xae/xae/doctypes/docbook/docbookx.dtd" []>

<article><?dbhtml filename="table.html"?>
<table frame="all"><title>Sample Table</title>
<tgroup cols="5" align="left" colsep="1" rowsep="1">
<colspec colname="c1"/>
<colspec colname="c2"/>
<colspec colname="c3"/>
<colspec colnum="5" colname="c5"/>
<spanspec spanname="hspan" namest="c1" nameend="c2" align="center"/>
<spanspec spanname="bspan" namest="c2" nameend="c3" align="center"/>
<thead>
<row>
  <entry spanname="hspan">Horizontal Span</entry>
  <entry>a3</entry>
  <entry>a4</entry>
  <entry>a5</entry>
</row>
</thead>
<tfoot>
<row>
  <entry>f1</entry>
  <entry>f2</entry>
  <entry>f3</entry>
  <entry>f4</entry>
  <entry>f5</entry>
</row>
</tfoot>
<tbody>
<row>
  <entry>b1</entry>
  <entry>b2</entry>
  <entry>b3</entry>
  <entry>b4</entry>
  <entry morerows="1" valign="middle"><para>  <!-- Pernicous Mixed
Content -->
  Vertical Span</para></entry>
</row>
<row>
  <entry>c1</entry>
  <entry spanname="bspan" morerows="1" valign="bottom">Span Both</entry>
  <entry>c4</entry>
</row>
<row>
  <entry>d1</entry>
  <entry>d4</entry>
  <entry>d5</entry>
</row>
</tbody>
</tgroup>
</table>
</article>

-- 
Jeffrey L. Franks  (Web)  http://www.motiftools.org
                   (Mail) jfranks@quik.com

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]