xml - Discrepancy between docbook.dtd and docbook.rng on the DocBook 5.0 Distribution -


when validate document, using relaxng , docbook.rng schema provided on docbook 5.0 distrution turn errors this:

error: attribute "title" not allowed @ point; ignored

and offending xml element "informaltable". in fact, read o o'reilly site basic definition of informaltable table without title. however, docbook.dtd dtd provided on same distribution specified "title" attribute on informatltable. error in dtd?

dtd snippet, included here, reference. if dtd indeed incorrect, there correct 1 around somewhere, or can generate somehow?

<!element informaltable (info?, ((textobject*, (mediaobject+|tgroup+))|((col*|colgroup*), thead?, tfoot?, (tbody+|tr+))))>  <!attlist informaltable     xmlns   cdata   #fixed  "http://docbook.org/ns/docbook"     role    cdata   #implied     %db.common.attributes;     %db.common.linking.attributes;     tabstyle    cdata   #implied     floatstyle  cdata   #implied     orient  (land|port) #implied     colsep  (0|1)   #implied     rowsep  (0|1)   #implied     frame   (all|bottom|none|sides|top|topbot|void|above|below|hsides|lhs|rhs|vsides|box|border)    #implied     pgwide  (0|1)   #implied     rowheader   (firstcol|norowheader)  #implied     class   cdata   #implied     style   cdata   #implied     title   cdata   #implied     lang    cdata   #implied     onclick cdata   #implied     ondblclick  cdata   #implied     onmousedown cdata   #implied     onmouseup   cdata   #implied     onmouseover cdata   #implied     onmousemove cdata   #implied     onmouseout  cdata   #implied     onkeypress  cdata   #implied     onkeydown   cdata   #implied     onkeyup cdata   #implied     summary cdata   #implied     width   cdata   #implied     border  nmtoken #implied     rules   (none|groups|rows|cols|all) #implied     cellspacing cdata   #implied     cellpadding cdata   #implied  > 

the docbok 5.0 dtd approximation. document validates against dtd not valid against normative relax ng schema.

docbook supports 2 types of table structures, cals , html. title attribute on informaltable supported in html tables. relax ng schema can distinguish between these 2 types of tables (with same name), in dtd not possible enforce restriction title allowed in html tables.

see http://docbook.org/docs/howto/#introduction-schemas.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -