Re: Pernicious Mixed Content [was Re: i]

Subject: Re: Pernicious Mixed Content [was Re: i]
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Thu, 26 Feb 1998 13:10:08 -0500
/ Christian Leutloff <leutloff@xxxxxxxxxxxxxxxxx> was heard to say:
[...]
| coudn't jade say something like this: 
| 
| > The fix is to remove all spaces after <entry> and before </entry>:
| 
| I don't understand the error message, so I wasn't able to find this
| myself 8-(

I don't think so.

This is just a nasty gotcha that results from SGML whitespace
handling rules.

Jade says:

jade:table-itemlist.sgml:8:16:E: document type does not allow element "ITEMIZEDLIST" here; missing one of "FOOTNOTE", "MSGTEXT" start-tag

Since the parser isn't allowed to look ahead, from the parser's
perspective

  <entry> <itemizedlist>...

is just as invalid as

  <chapter><title><para>

It's an element where it can't occur in the content model.

FWIW, most of the errors in your posted example:

jade:table-itemlist.sgml:9:16:E: character data is not allowed here
jade:table-itemlist.sgml:9:31:E: end tag for "LISTITEM" which is not finished
jade:table-itemlist.sgml:10:16:E: character data is not allowed here
jade:table-itemlist.sgml:10:32:E: end tag for "LISTITEM" which is not finished
jade:table-itemlist.sgml:11:16:E: document type does not allow element "ITEMIZEDLIST" here; assuming missing "LISTITEM" start-tag
jade:table-itemlist.sgml:12:7:E: "ITEMIZEDLIST" not finished but containing element ended
jade:table-itemlist.sgml:12:7:E: end tag for "ITEMIZEDLIST" omitted, but its declaration does not permit this
jade:table-itemlist.sgml:11:3: start tag was here
jade:table-itemlist.sgml:12:7:E: end tag for "ITEMIZEDLIST" omitted, but its declaration does not permit this
jade:table-itemlist.sgml:8:3: start tag was here

are actually the result of

  <listitem>first</listitem>
  
and 

  <listitem>second</listitem>

You need a wrapper in there, too. ;-)

--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) <=