Re: [docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-22 Thread Giuseppe Bonelli
Jirka, thanks for your reply.
You are right, but:

On Wed, Jul 21, 2010 at 11:24 PM, Jirka Kosek ji...@kosek.cz wrote:
 DocBook has much more complex structures which can be nested and can't
 be directly mapped to valid XHTML. Handling this on stylesheet level
 would be to complex, so running HTML Tidy on output of DocBook
 stylesheets makes sense in this situations.

I need to have footnotes in table titles (that's why I
usecaptionpara) and figures in table cells (that's why I use
tdpara) and there should be a mean to have them both valid in
docbook and xhtml11 output (I need xhtml11 because I am targeting IDPF
epub content).

Anyone has some suggestions (apart from postprocessing the html files)?

TIA,

__peppo

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-22 Thread Jirka Kosek
Giuseppe Bonelli wrote:

 I need to have footnotes in table titles (that's why I
 usecaptionpara) 

Well then you have to customize stylesheets to not emit excessive p in
HTML output.

 and figures in table cells (that's why I use
 tdpara) 

In table cell you can directly use inlinemediaobject without any
surrounding elements.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-21 Thread Giuseppe Bonelli
Hi list,
I am using  /xhtml-1_1/docbook.xsl (1.75.2) to chunck a valid docbook
4.5 file and I get invalid xhtml11.

In the docbook source I have valid structures like:

tablecaptionparamixed content/para/caption
...
 td
para
 figure float=0title/
  mediaobject role=print
 imageobject
imagedata width=28
fileref=figs/img13.png format=PNG/
 /imageobject
  /mediaobject
   /figure
 /para
   /td

/table

that get transformed in:

tablecaptionpmixed content/p/caption
...
  td
 pdiv class=figure/div/p
  /td
...
/table

The above html is not valid as per !DOCTYPE html PUBLIC -//W3C//DTD
XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
because caption does not allow p children and p does not allow div children.

Is this the expected behaviour starting from a valid docbook file or I
am missing something?

TIA,

__peppo

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-21 Thread Keith Fahlgren
Hi,

On Wed, Jul 21, 2010 at 11:38 AM, Giuseppe Bonelli
peppo.bone...@gmail.com wrote:
 The above html is not valid as per !DOCTYPE html PUBLIC -//W3C//DTD
 XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 because caption does not allow p children and p does not allow div children.

My guess is that captions for HTML tables in DocBook 4.5 were not
intended to include paras (compare with
http://docbook.org/tdg5/en/html/html.caption.html), although you're
right that they don't expressly forbid them. Similarly, I think the
above would be improved if the (otherwise empty) para wrapper was
removed from the td.

In either case, both are probably bugs in the stylesheets, so please
report them http://sourceforge.net/tracker/?group_id=21935atid=373747

You may have better luck with the CALS table model if you're aiming
for valid XHTML 1.1 output (I'm honestly not sure).

 Is this the expected behaviour starting from a valid docbook file or I
 am missing something?

May I ask why you've chosen to use the XHTML 1.1 stylesheets rather
than the XHTML 1.0 stylesheets?



Keith

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-21 Thread Jirka Kosek
Giuseppe Bonelli wrote:

 Is this the expected behaviour starting from a valid docbook file or I
 am missing something?

DocBook has much more complex structures which can be nested and can't
be directly mapped to valid XHTML. Handling this on stylesheet level
would be to complex, so running HTML Tidy on output of DocBook
stylesheets makes sense in this situations.

Anyway, if you are targeting web browsers, I would discourage you from
using XHTML 1.1. It's impossible to serve XHTML 1.1 to IE without
breaking XHTML 1.1 specification.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
--



signature.asc
Description: OpenPGP digital signature