On further investigation, the story appears to be the following:

- Informal CALS tables, accepts pgwide, pgwide attribute honored in HTML 
transformation.
- Formal CALS tables, accepts pgwide, pgwide attribute honored in HTML 
transformation.
- Informal HTML tables, no pgwide supported, width=100% has same effect in HTML 
transformation.
- Formal HTML tables, pgwide attribute allowed but not honored in HTML 
transformation. Use width=100% instead.

It looks like this last case is an error in the schema or a failure of the 
default XSL to honor the attribute. I suspect the former, especially since 
there's a good workaround.

-----Original Message-----
From: Barton Wright [mailto:[email protected]] 
Sent: Saturday, March 19, 2011 5:49 PM
To: Chris Ridd; Bob Stayton
Cc: [email protected]
Subject: RE: [docbook-apps] pgwide support with Docbook 5

Chris is right that HTML tables do not support the pgwide attribute in DocBook 
5. Neither XXE 4.8 nor Oxygen 12.1 will let me add that attribute on HTML 
tables, but allows it on CALS tables.

However, when transforming to HTML, you can emulate the pgwide effect on HTML 
tables with the attribute width="100%". 

When transforming a test article to PDF with FOP using XXE's PDF generation 
facility, both CALS and HTML tables came out the width of the page body, both 
with and without pgwide="1" and width="100%", respectively.

-----Original Message-----
From: Chris Ridd [mailto:[email protected]] 
Sent: Saturday, March 19, 2011 5:03 PM
To: Bob Stayton
Cc: [email protected]
Subject: Re: [docbook-apps] pgwide support with Docbook 5


On 19 Mar 2011, at 01:31, Bob Stayton wrote:

> Hi Chris,
> pgwide is permitted on table, both CALS and HTML tables. Here is the 
> definitive guide:
> 
> http://www.docbook.org/tdg5/en/html/cals.table.html
> 
> I looked in the DTD and the RelaxNG schema, and see pgwide available on 
> table.  How did you conclude that it was not permitted?

XXE reported it as invalid.

I think we are using HTML tables, not CALS tables. 
<http://www.docbook.org/tdg5/en/html/html.informaltable.html> has no pgwide.

Maybe HTML tables were a tactical mistake on our part!

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to