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: [docbook] Customized Simplified DocBook 1.1: DTD parser error: XMLconditional section not closed


Am Mittwoch, den 25.04.2007, 20:44 +0200 schrieb Mauritz Jeanson:
> > -----Original Message-----
> > From: Bob Stayton 
> > 
> > Perhaps this is version related?  I don't get the error with 
> > xmllint in
> > 2.6.27 (20627CVS2877).
> 
> 
> I use the same version of xmllint. It turns out that I had a catalog entry
> which mapped the public id for DocBook 4.3 (which is referenced in
> sdocbook-custom.dtd) to the system id of DocBook 4.4. After having fixed
> that, the error disappeared.
> 
> But then again, shouldn't it work anyway? What could it be in the DocBook
> 4.4 DTD that makes xmllint choke in this case?

Nice work. Yes, that seems to be the problem. I was able to track it
down to some changes in the DTD. As you know, we (Debian) patch(ed) the
DTD to fix some bugs, which were also fixed in the official DB XML 4.4
release. That's probably the reason, why you see the error too and why
onsgmls does not complain. When I replace the patched version with the
original one, the error disappears. Attached are the important
differences, that were also applied to DTD in 4.4. So these changes seem
to be the reason for the error.

Regards, Daniel
diff -puN --recursive --exclude=README --exclude='[iI][sS][oO]*.ent' --exclude=ChangeLog --exclude='catalog*' --exclude=docbook.cat ../../../../docbook-xml/docbook-xml-4.5/docbook-4.3/dbpoolx.mod /usr/share/xml/docbook/schema/dtd/4.3/dbpoolx.mod
--- ../../../../docbook-xml/docbook-xml-4.5/docbook-4.3/dbpoolx.mod	2004-03-31 13:20:20.000000000 +0200
+++ /usr/share/xml/docbook/schema/dtd/4.3/dbpoolx.mod	2007-04-18 22:37:51.000000000 +0200
@@ -50,7 +50,7 @@
      declaration that uses the public identifier shown below:
 
      <!ENTITY % dbpool PUBLIC
-     "-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN"
+     "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN"
      "dbpoolx.mod">
      %dbpool;
 
@@ -633,6 +633,9 @@ d. Just Acronym, Emphasis, and Trademark
 
 <!-- xml:base: base URI -->
 
+<![%sgml.features;[
+<!ENTITY % xml-base.attrib "">
+]]>
 <!ENTITY % xml-base.attrib
 	"xml:base	CDATA		#IMPLIED">
 
diff -puN --recursive --exclude=README --exclude='[iI][sS][oO]*.ent' --exclude=ChangeLog --exclude='catalog*' --exclude=docbook.cat ../../../../docbook-xml/docbook-xml-4.5/docbook-4.3/htmltblx.mod /usr/share/xml/docbook/schema/dtd/4.3/htmltblx.mod
--- ../../../../docbook-xml/docbook-xml-4.5/docbook-4.3/htmltblx.mod	2004-03-31 13:20:20.000000000 +0200
+++ /usr/share/xml/docbook/schema/dtd/4.3/htmltblx.mod	2007-04-18 22:37:51.000000000 +0200
@@ -63,6 +63,9 @@
   >
 
 <!-- Does not contain lang or dir because they are in %common.attribs -->
+<![%sgml.features;[
+<!ENTITY % i18n "">
+]]>
 <!ENTITY % i18n
  "xml:lang    NMTOKEN        #IMPLIED"
   >
@@ -92,11 +95,11 @@
   "valign     (top|middle|bottom|baseline) #IMPLIED"
   >
 
-<!ELEMENT colgroup (col)*>
-<!ELEMENT col      EMPTY>
-<!ELEMENT tr       (th|td)+>
-<!ELEMENT th       (%para.char.mix; | %tabentry.mix;)*>
-<!ELEMENT td       (%para.char.mix; | %tabentry.mix;)*>
+<!ELEMENT colgroup %ho; (col)*>
+<!ELEMENT col      %ho; EMPTY>
+<!ELEMENT tr       %ho; (th|td)+>
+<!ELEMENT th       %ho; (%para.char.mix; | %tabentry.mix;)*>
+<!ELEMENT td       %ho; (%para.char.mix; | %tabentry.mix;)*>
 
 <!ATTLIST colgroup
   %attrs;
@@ -206,7 +209,7 @@
     summary     CDATA          #IMPLIED
     width       CDATA        #IMPLIED
     border      CDATA        #IMPLIED
-    rules       (none | groups | rows | cols | all)      #IMPLIED
+    rules       CDATA        #IMPLIED
     cellspacing CDATA        #IMPLIED
     cellpadding CDATA        #IMPLIED
     align       (left|center|right)   #IMPLIED


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