Hi,
The align attribute is for horizontal alignment,
and takes values of left, center, or right. For vertical alignment,
you want the valign attribute, which takes values of top, middle, or
bottom. That attribute can appear on tbody, thead, tfoot, and their
descendants, but not on table or tgroup. Try using valign in the right
places and see if it works.
----- Original Message -----
Sent: Tuesday, August 28, 2007 1:22
PM
Subject: Re: [docbook-apps] attributes in
entrytbl
The XML source:
<?xml version="1.0"
encoding="utf-8"?>
<!DOCTYPE
article PUBLIC "-//OASIS//DTD DocBk XML V4.1.2//EN" "file:///c:/jbr/emacs-21.3/site-lisp/xae-1.0beta8/doctypes/docbook/docbookx.dtd"
[]>
<?xml-stylesheet
href="test-html.xsl" type="text/xsl"?>
<article>
<title>Title</title> <subtitle>SubTitle</subtitle> <section id="section-1"> <title>Section 1
Title</title>
<informaltable pgwide="1" frame="all" align="top"> <tgroup cols="3" colsep="1"
rowsep="1">
<colspec colnum="1" colname="c1" colwidth="3*"/> <colspec colnum="2"
colname="c2" colwidth="1*"/>
<colspec colnum="3" colname="c3"
colwidth="5*"/>
<thead><row>
<entry><para>Entry Header 1</para></entry>
<entry><para>Entry Header 2</para></entry>
<entry><para>Entry Header 3</para></entry>
</row></thead>
<tbody> <row>
<entry><para>Some Text for entry number 1. I'll fill
this
up so I can force it to wrap, allowing the following
entries
to demonstrate that they're not
<code>align</code>ing at the top as specified in
the attribute. I'd would have expected them to be
<code>align</code>ed at the top.</para></entry>
<entry><para>Some Text 2</para></entry>
<entrytbl pgwide="1" cols="2" align="left" colsep="5" rowsep="1">
<colspec colnum="4" colname="c4" colwidth="1*"/>
<colspec colnum="5" colname="c5" colwidth="3*"/>
<tbody>
<row>
<entry><para>Text in column one, row 1. Some
more
text to demonstrate the separation in
between
columns in the
<code>entrytlb</code>. </para></entry>
<entry><para>Text in column two, row
1</para></entry>
</row>
</tbody>
</entrytbl> </row> </tbody>
</tgroup>
</informaltable>
</section> </article>
The customization layer:
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"> <xsl:import
href="file:///c:/jbr/emacs-21.3/site-lisp/xae-1.0beta8/doctypes/docbook/styles/docbook/html/docbook.xsl"/>
<xsl:param name="use.extensions"
select="1"/> <xsl:param
name="tablecolumns.extension" select="1"/> </xsl:stylesheet>
The
HTML output:
<html><head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Title</title><meta name="generator"
content="DocBook XSL Stylesheets V1.72.0"></head><body
bgcolor="white" text="black" link="#0000FF" vlink="#840084"
alink="#0000FF"><div class="article" lang="en"><div
class="titlepage"><div><div><h2 class="title"><a
name="d0e2"></a>Title</h2></div><div><h3
class="subtitle"><i>SubTitle</i></h3></div></div><hr></div><div
class="toc"><p><b>Table of
Contents</b></p><dl><dt><span
class="section"><a href="javascript:void(0);">Section 1
Title</a></span></dt></dl></div><div
class="section" lang="en"><div
class="titlepage"><div><div><h2 class="title" style="clear:
both"><a name="section-1"></a>Section 1
Title</h2></div></div></div><div
class="informaltable"><table width="100%"
border="1"><colgroup><col width="33%"><col
width="11%"><col
width="56%"></colgroup><thead><tr><th
align="top"><p>Entry Header 1</p></th><th
align="top"><p>Entry Header 2</p></th><th
align="top"><p>Entry Header
3</p></th></tr></thead><tbody><tr><td
align="top"><p>Some Text for entry number 1. I'll fill
this
up so I can force it to wrap, allowing the following
entries
to demonstrate that they're not <code
class="code">align</code>ing at the top as specified in
the attribute. I'd would have expected them to be
<code class="code">align</code>ed at the
top.</p></td><td align="top"><p>Some Text
2</p></td><td align="left"><table width="100%"
border="0"><colgroup><col width="50%"><col
width="50%"></colgroup><tbody><tr><td
align="left"><p>Text in column one, row 1. Some more
text to demonstrate the separation in between
columns in the <code
class="code">entrytlb</code>. </p></td><td
align="left"><p>Text in column two, row
1</p></td></tr></tbody></table></td></tr></tbody></table></div></div></div></body></html>
"Bob Stayton"
<bobs@sagehill.net> Phone:
08/28/2007 11:40 AM
|
To
| "Bob Stayton"
<bobs@sagehill.net>, <JRancier@penntraffic.com>
|
cc
| "DocBook Apps"
<docbook-apps@lists.oasis-open.org>
|
Subject
| Re: [docbook-apps]
attributes in entrytbl |
|
Correction, that should be:
"An entrytbl is framed by is colsep
and rowsep on its right and bottom sides, respectively."
Bob
Stayton Sagehill Enterprises DocBook
Consulting bobs@sagehill.net
----- Original Message -----
From: "Bob Stayton" <bobs@sagehill.net> To:
<JRancier@penntraffic.com> Cc: "DocBook Apps"
<docbook-apps@lists.oasis-open.org> Sent: Monday, August 27, 2007
8:20 PM Subject: Re: [docbook-apps] attributes in entrytbl
>
An entrytbl element does not permit a frame attribute, so you should not
> expect that to work. An entrytbl is framed by is rowsep and
colsep on > its right and bottom sides, respectively. > > I
think align should work. Can you give a short example of what you
> tried, what you expected, and what you got (the HTML attributes that
were > actually output)? > > Bob Stayton > Sagehill
Enterprises > DocBook Consulting >
bobs@sagehill.net > > > ----- Original Message -----
> From: <JRancier@penntraffic.com> > To:
<docbook-apps@lists.oasis-open.org> > Sent: Wednesday, August 22,
2007 11:31 AM > Subject: [docbook-apps] attributes in
entrytbl > > >> Should I expect the frame and align
attributes to work correctly on an >> entrytbl? I'm using
DocBook 4.1.2 with the 1.7.2 version of the HTML >>
stylesheets. >> >>
Jeff >> >> >> >>
--------------------------------------------------------------------- >>
To unsubscribe, e-mail:
docbook-apps-unsubscribe@lists.oasis-open.org >> For additional
commands, e-mail:
docbook-apps-help@lists.oasis-open.org >> >> >> > > > >
--------------------------------------------------------------------- >
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >
For additional commands, e-mail:
docbook-apps-help@lists.oasis-open.org > > >
|