Validation error when trying to insert a section into a general task(body)
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 33
- Joined: Tue Mar 03, 2020 11:15 pm
Validation error when trying to insert a section into a general task(body)
Post by doctissimus »
Hi,
I am using Oxygen 22. I created a General Task file that generated a skeleton topic with the following declaration.
Here is some pseudo-markup of the topic I'm trying to create:
From what I can tell (http://docs.oasis-open.org/dita/dita/v1 ... s__section and http://docs.oasis-open.org/dita/v1.2/os ... ction.html), a section is allowed within a taskbody - but I'm getting a validation error from Oxygen.
Any insight is appreciated.
Thanks,
doctissimus
I am using Oxygen 22. I created a General Task file that generated a skeleton topic with the following declaration.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA General Task//EN" "generalTask.dtd">
Code: Select all
<task>
<taskbody>
<steps>
...
</steps>
<section>
...
</section>
</taskbody>
</task>
Any insight is appreciated.
Thanks,
doctissimus
-
- Posts: 11
- Joined: Mon Oct 21, 2019 10:55 pm
Re: Validation error when trying to insert a section into a general task(body)
You want to use <stepsection> in a task. It is different from a regular <section> in that it acts more like a break between steps, not a container for steps. If you want to contain some steps beneath a parent step, use <substeps>. Also, you cannot end a task on <stepsection>; <stepsection> must be followed by <steps>. To add information at the end of a task, use <result> or <postreq>.
https://www.oxygenxml.com/dita/1.3/spec ... ction.html
https://www.oxygenxml.com/dita/1.3/spec ... ction.html
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Validation error when trying to insert a section into a general task(body)
Hi,
According to the DITA schemas you can have a section in a general task but it must appear before the context and steps.
So something like this is valid:
but you cannot insert it after the steps.
Regards,
Radu
According to the DITA schemas you can have a section in a general task but it must appear before the context and steps.
So something like this is valid:
Code: Select all
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA General Task//EN" "generalTask.dtd">
<task id="task_v2p_zzn_xkb">
<title></title>
<shortdesc></shortdesc>
<taskbody>
<section id="section_q3l_114_xkb">
<title/>
<p/>
</section>
<context>
<p></p>
</context>
<steps>
<step>
<cmd></cmd>
</step>
</steps>
</taskbody>
</task>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 33
- Joined: Tue Mar 03, 2020 11:15 pm
Re: Validation error when trying to insert a section into a general task(body)
Post by doctissimus »
Hi april_m and Radu,
Thanks very much for the great information, I appreciate your generosity as I climb this learning curve. I am hoping to place some supplemental information after the task steps, so I am going to try a potreq or a resuslts element.
Thanks, again.
doctissumus
Thanks very much for the great information, I appreciate your generosity as I climb this learning curve. I am hoping to place some supplemental information after the task steps, so I am going to try a potreq or a resuslts element.
Thanks, again.
doctissumus
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service