"example should only contain one title element"
Posted: Fri Feb 22, 2019 9:01 pm
I'm on Author 20.1, and a warning is appearing in some of my tasks: "example should only contain one title element". I don't recall this in previous version of Oxygen.
Sample code of an example in a task:
In concepts, we can split the examples. Tasks don't allow for this.
My question is: Is this an OASIS standard?
This page states that you can have any number of titles: http://docs.oasis-open.org/dita/v1.2/os ... ml#example
This page doesn't mention it: https://www.oxygenxml.com/dita/1.3/spec ... ample.html
This page has a note about using only one title element, but it's for sections: https://www.oxygenxml.com/dita/1.3/spec ... ction.html
Can you please help clarify whether multiple titles in an example is okay?
BTW, I also get "Title must be the first element in a section" in references>sections, but I think your note in my last link clarifies that...
Sample code of an example in a task:
Code: Select all
<example><title>example 1</title>
<p>content</p>
<title>example 2</title>
<p>content</p>
<title>example 3</title>
<p>content</p>
</example>
My question is: Is this an OASIS standard?
This page states that you can have any number of titles: http://docs.oasis-open.org/dita/v1.2/os ... ml#example
This page doesn't mention it: https://www.oxygenxml.com/dita/1.3/spec ... ample.html
This page has a note about using only one title element, but it's for sections: https://www.oxygenxml.com/dita/1.3/spec ... ction.html
Can you please help clarify whether multiple titles in an example is okay?
BTW, I also get "Title must be the first element in a section" in references>sections, but I think your note in my last link clarifies that...