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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Pernicious Mixed Content [was R, Christian Leutloff | Thread | Keeping Text Together, Chuck Darney |
Re: Use of lambda, Daniel Speck | Date | Re: Use of lambda, Dave Love |
Month |