1 Jun 2006 11:01
Lenient mode and DocBook V5
Jirka Kosek <jirka <at> kosek.cz>
2006-06-01 09:01:19 GMT
2006-06-01 09:01:19 GMT
Hi,
it seems that DocBook V5 schema is written in a way which permanently
turns XXE into lenient mode (which is of course not very handy for real
editing).
The cause of this are info and indexterm elements. I can understand why
info cause lenient mode. If you have element with required title such
chapter, you can write it down like
<chapter>
<title>
or
<chapter>
<info>
<title>
I can see ambiguity here and this is not problem for me, because I
actually use customized version of DocBook which allows only former way
of specifying title.
What I actually do not get is problem with indexterms. Because indexterm
can be child of almost any element in DocBook it means that lenient mode
is present on almost all DocBook elements. But why lenient mode must be
used for elements that contain indexterm?
DocBook schema defines three content models for indexterm which are then
combined together to single pattern used in places suitable for
(Continue reading)
RSS Feed