Rob Smith wrote:
> Norman Walsh has just released DocBook 4.4, which adds some new elements 
> including package, bibliolist, and biblioref.

Next release XXE V2.9 will *not* include DocBook 4.4.



> To use DocBook 4.4 with XXE, you need to modify the DTD to add xml:space 
> 'preserve' as a default attribute on "linespecific" elements, i.e. 
> literallayout, programlisting, programlistingco, screen, screenco and 
> screenshot. For previous versions of DockBook this was done by modifying 
> either docbookx.dtd or dbpoolx.mod to include the file 
> preservespace.ent. This doesn't work for 4.4, because in the new version 
> the entity xml-space.attrib has been added to linespecific.attrib, 
> defined as:
> 
> <!ENTITY % xml-space.attrib "xml:space (preserve) #IMPLIED">
> 
> This adds xml:space as an optional attribute to all "linespecific" 
> elements.
> 
> My solution was to add the following at the top of dbpoolx.mod:
> 
> <!ENTITY % xml-space.attrib "xml:space (default|preserve) 'preserve'">
> 
> to make 'preserve' the default value for xml:space on the linespecific 
> elements.

Starting from XXE V2.9 (in principle, to be released next monday), this 
will not be an issue.

Excerpts of *NOT YET RELEASED* V2.9 changes.html:

---
The new "preserveSpace" configuration element allows to specify which
elements are whitespace-preserving.

For example, this configuration element is used in the DocBook,
Simplified DocBook and Slides configuration files to specify that
elements such as "programlisting", "screen", etc, are
whitespace-preserving.

Thanks to the new "preserveSpace" configuration element, the DocBook,
Simplified DocBook and Slides DTDs bundled with XXE no longer
need to be modified by XMLmind.

Previously, these DTDs were modified in order to
add attribute "xml:space" with default value "preserve"
to elements such as "programlisting", "screen", etc.
---



> Of course, you also need to modify catalog.xml and docbook.xxe, or 
> extend them in your user config directory.

True. Thanks for the tip.


Reply via email to