OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] Content model for caption wrong?


Hi Frank,

Your link is from the Docbook 4 Guide.
The Docbook 5 specs for "caption" does not seem to allow mixed content inside it:

http://www.docbook.org/tdg5/en/html/caption.html

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 2/4/2016 1:12 PM, Frank Arensmeier wrote:
Hello!

I am reading the content model definition for the "caption" element -
http://www.docbook.org/tdg/en/html/caption.html
The content model clearly states that captions can contain plain text.
However, this little snippet does not pass validation in Oxygen:

<sectionxmlns="http://docbook.org/ns/docbook"xmlns:xlink="http://www.w3.org/1999/xlink"version="5.0";>
<title>Section Template Title</title>
<para>Text</para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedatafileref="#"></imagedata>
</imageobject>
</mediaobject>
<caption>My caption here.</caption>
</informalfigure>
</section>

Is the content model wrong or the Docbook RNG Schema?

Frank Arensmeier

Paligo - The truly user-friendly CMS for technical documentation
www.paligo.se <http://www.paligo.se>



--



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