[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [dita] DITA 2.0 proposal: allow example in more contexts
Topics do not require examples at the end of the body (unless you've got a constraint in place). Here's the latest errata version of the DTD, but the only change here from DITA 1.0 is that <bodydiv> was added a couple releases ago:
https://github.com/oasis-tcs/dita/blob/master/doctypes/dtd/base/dtd/topic.mod#L375
<!ENTITY % body.content
"(%body.cnt; |
%bodydiv; |
%example; |
%section;)*">
So today - example can be the first thing in your body, followed by everything else.
The restriction only comes up in concept topics, where there was an explicit decision back in DITA 1.0 to put examples and sections at the end:
https://github.com/oasis-tcs/dita/blob/master/doctypes/dtd/technicalContent/dtd/concept.mod#L90
<!ENTITY % conbody.content
"((%body.cnt;)*,
(%section; |
%example; |
%conbodydiv;)*)">
I don't have a strong feeling about that restriction one way or the other, but I think it means the change here would be to update the <conbody> content model in concepts rather than <body> in topics.
Robert D. Anderson DITA-OT lead and Co-editor DITA 1.3 specification Marketing Services Center |
E-mail: robander@us.ibm.com 11501 BURNET RD,, TX, 78758-3400, AUSTIN, USA |
<!ENTITY % body.content | |
"((%body.cnt;)*, | |
(%section; | | |
%example; | | |
%bodydiv;)*)"> |
<!ENTITY % body.cnt | |
"%basic.block; | | |
%data.elements.incl; | | |
%draft-comment; | | |
%foreign.unknown.incl; | | |
%required-cleanup; | %section; | %example; | %bodydiv;"> |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]