Eric van der Vlist wrote:
> Currently, XEE relies on the xml:space attribute (usually defaulted in a
> DTD or schema) to detect when spaces need to be preserved. This info is
> also available in the CSS stylesheet (white-space attribute) and I think
> that in most cases, that's easier for a "power user" to fiddle the CSS
> than the DTD.
> 
> Why not use the information of the CSS stylesheet (when available) and
> not normalize spaces when white-space is set to "pre"?

Your suggestion cannot be easily implemented given the architecture of XXE.

However you are right in saying that XXE could have a method other than 
xml:space="preserve" to specify that spaces need to be preserved for 
some elements.

XSLT style sheets have such mechanism. For XXE, it seems natural to 
specify this in configuration files.

For example, this would allow to use unmodified DocBook DTDs from OASIS 
and to specify in docbook.xxe that spaces need to be preserved inside 
programlisting, screen, literallayout, etc.


Reply via email to