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: Re: [docbook] DocBook5: literallayout in entry gives validation errors


Hi,

On Sonntag, 28. Oktober 2007, Jirka Kosek wrote:
> [...]
> > I don't know why this should be invalid, but jing complains with the
> > following message:
>
> Table entries have sort of "dual" content model. Either they can
> directly contain text and inline elements (mixed content), or they can
> contain block elements. Because literallayout is block level element
> you can't mixed it with text directly. You have to change your entry
> to:
>
> <entry>
>   <para>abc</para>
>   <literallayout>def</literallayout>
> </entry>

Ok, thanks. However, from a user perspective that's a bit unsatisfying as 
any XML editor happily inserts these block elements. :) So this gives you 
actually a false sense of validity although the DocBook Schema allows it. 
Unfortunatly, the error message from jing is not very helpful either. 

Probably this restriction can't be easily enforced in RELAX NG, right? Can 
it be checked with Schematron?


Thanks Jirka for this explanation,
Tom

-- 
Thomas Schraitle


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