Pernicious Mixed Content [was Re: i]

Subject: Pernicious Mixed Content [was Re: i]
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Thu, 26 Feb 1998 07:10:09 -0500
/ Christian Leutloff <leutloff@xxxxxxxxxxxxxxxxx> was heard to say:
[...]
| I want to use an itemized list inside a table. This can be done, as
| mentionend in the DocBook documentation:
[...]
| <----------------
| <!DOCTYPE table PUBLIC "-//Davenport//DTD DocBook V3.0//EN">
| <table>
| <title>Table with itemizedlist</title>  
| <tgroup cols=1>
| <tbody>
| <row>
| <entry>
|    <itemizedlist>
|       <listitem>first</listitem>
|       <listitem>second</listitem>
|    <itemizedlist>
| </entry>
| </row>
| </tbody>
| </tgroup>
| </table>
| <----------------
[...]
| What's wrong!?

Table Entrys in DocBook exhibit pernicious mixed content. Entrys
can contain _either_ PCDATA or block elements (Paras,
ItemizedLists, etc.), but not both.  Basically, the SGML parser
sees the space (or newline) after the <entry> start tag and
concludes that this Entry element will contain PCDATA. Four
characters later it encounters an ItemizedList which is not
allowed.

The fix is to remove all spaces after <entry> and before </entry>:

<entry><itemizedlist>
       <listitem><para>first</para></listitem>
       <listitem><para>second</para></listitem>
<itemizedlist></entry>

--norm



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • i
    • Christian Leutloff - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id WAA13794Wed, 25 Feb 1998 22:29:25 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id HAA24461Thu, 26 Feb 1998 07:11:48 -0500 (EST) <=
        • Christian Leutloff - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA28857Thu, 26 Feb 1998 12:07:33 -0500 (EST)
          • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA00428Thu, 26 Feb 1998 13:14:17 -0500 (EST)