OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: xhtml table

Hash: SHA1

/ "Myriam Delperier" <myriam.delperier@ajlsm.com> was heard to say:
|  || I read the request as a desire to be able to use
| || XHTML tables in the source XML that (otherwise)
| || conforms to the DocBook DTD.  But I may have
| || been mistaken.
| thanks for trying to answer my question.
| In fact, i'have xhtml tables in my docbook file, like this :
| <table xmlns:xhtml="http://www.w3.org/1999/xhtml">
| </table>
| and i'd like to know how i should modify the docbook dtd in order to have a
| valid docbook file

You can't. There's no way to get DTD validation to handle this
situation because DTDs don't know anything about namespaces and there
are elements with conflicting names in XHTML and DocBook.

If you put the XHTML documents in an explicit namespace (<h:table>,
<h:caption>, etc.) then it would be technically possible.

Since you've got HTML markup in your table, you're really asking to
have HTML inline in DocBook. I wouldn't encourage it, but if you're
careful it can probably be managed.

1. Create a copy of the XHTML DTD with an explicit namespace for the elements.
2. Create a new DTD driver that includes both the XHTML and DocBook DTDs.
3. Add h:table to the local.divcomponent.mix (or some other location) so that
   h:tables can occur where you want them.

                                        Be seeing you,

- -- 
Norman Walsh <ndw@nwalsh.com>      | Sometimes in life situations
http://www.oasis-open.org/docbook/ | develop that only the half-crazy
Chair, DocBook Technical Committee | can get out of.--La Rochefoucauld
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]