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: DocBook V4.3: SGML tweaks and Emacs/psgml


Without the patches 1/ and 2/ onsgmls will not parse an SGML using the
supplied SGML declaration (docbook.dcl).

1/
Error message:

echo '<!DOCTYPE book SYSTEM "docbook.dtd">
<book></book>
' | onsgmls -E 1 -s docbook.dcl -
onsgmls:dbpoolx.mod:815:17:E: character ":" invalid: only "CDATA", "ENTITIES", "ENTITY", "ID", "IDREF", "IDREFS", "NAME", "NAMES", "NMTOKEN", "NMTOKENS", "NOTATION", "NUMBER", "NUMBERS", "NUTOKEN", "NUTOKENS" and parameter separators allowed
onsgmls:I: maximum number of errors (1) reached; change with -E option

Because of the colon in "xml:base" I propose to change the SGML
declaration as follows:

--- docbook.dcl.~1~	2004-03-31 13:44:16.000000000 +0200
+++ docbook.dcl	2004-06-06 09:07:41.722095720 +0200
@@ -61,8 +61,8 @@
 	NAMING
 		LCNMSTRT ""
 		UCNMSTRT ""
-		LCNMCHAR ".-_"
-		UCNMCHAR ".-_"
+		LCNMCHAR ".-_:"
+		UCNMCHAR ".-_:"
 		NAMECASE
 			GENERAL YES
 			ENTITY  NO


2/
Error message:

echo '<!DOCTYPE book SYSTEM "docbook.dtd">
<book></book>
' | onsgmls -s docbook.dcl -
onsgmls:calstblx.dtd:98:23:E: token "NONE" occurs more than once in attribute definition list
onsgmls:calstblx.dtd:98:23:E: token "ALL" occurs more than once in attribute definition list
onsgmls:dbpoolx.mod:3705:17:E: token "NONE" occurs more than once in attribute definition list
onsgmls:dbpoolx.mod:3705:17:E: token "ALL" occurs more than once in attribute definition list

The "tbl.frame.attval" entity definition in htmltblx.mod wins and thus
the attribute values "none" and "all" will appear twice.  This is not
allowed.  I propose to define "tbl.frame.attval" in a way following
HTML 4.01:

--- htmltblx.mod.~1~	2004-03-31 13:43:24.000000000 +0200
+++ htmltblx.mod	2004-06-06 09:45:55.033459400 +0200
@@ -213,8 +213,10 @@
     bgcolor     CDATA         #IMPLIED
 '>
 
+<!-- HTML 4.01 defines TFrame as
+     "(void|above|below|hsides|lhs|rhs|vsides|box|border)" -->
 <!ENTITY % tbl.frame.attval "void|above|below|hsides|lhs|rhs|vsides|box|border|
-top|bottom|topbot|all|sides|none">
+top|bottom|topbot|sides">
 
 <!-- Allow either objects or inlines; beware of REs between elements. -->
 <!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">


3/
Not a DTD issue, but maybe helpful: To make Emacs/psgml aware of this
change add to .emacs:

(eval-after-load "psgml-parse"
	'(modify-syntax-entry ?_ "_" sgml-parser-syntax))
(eval-after-load "psgml-parse"
	'(modify-syntax-entry ?: "_" sgml-parser-syntax))


-- 
                                                         |      ,__o
                                                         |    _-\_<,
http://www.gnu.franken.de/ke/                            |   (*)/'(*)


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