Element section not recognised
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 2
- Joined: Wed Feb 12, 2025 12:11 pm
Element section not recognised
A colleague of mine has just installed version 27.0 of oXygen Author and has a problem with <section> being flagged as an error:
Element type "section" must be declared.
If I open the same file in version 26.1, there is no error and the file is marked up correctly. We are both using the default validation and haven't made any changes to the validation scenario. The error is also flagged when using a transformation scenario, although the file is actually transforming and giving the correct output.
We first noticed this issue when she was using the evaluation version, and thought that it would be resolved when she got the full version but it is persisting.
Has anyone else come across this issue? Or know how to fix it? It is causing problems because we keep having to check the transformation errors to make sure there are no real errors hidden in the list. It is also confusing for my colleague, who is fairly new to using DITA.
I attach a screenshot below.
Element type "section" must be declared.
If I open the same file in version 26.1, there is no error and the file is marked up correctly. We are both using the default validation and haven't made any changes to the validation scenario. The error is also flagged when using a transformation scenario, although the file is actually transforming and giving the correct output.
We first noticed this issue when she was using the evaluation version, and thought that it would be resolved when she got the full version but it is persisting.
Has anyone else come across this issue? Or know how to fix it? It is causing problems because we keep having to check the transformation errors to make sure there are no real errors hidden in the list. It is also confusing for my colleague, who is fairly new to using DITA.
I attach a screenshot below.
DITA_section_error.png
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Element section not recognised
Hi,
Strange, I tested with Oxygen 27.0 on a concept like this:
and I get no validation error as the default DITA DTDs allow for sections inside the <conbody> element.
So I do not think it's a problem specific to the Oxygen version, Oxygen 27 comes bundled with the same DITA DTDs as Oxygen 26.1.
Did your colleague make changes in the Oxygen Preferences->DITA page, for example selecting a custom DITA Open Toolkit? Because that custom DITA OT would be used both for publishing and for validation? Or did they make changes directly in the DITA OT DTDs?
Regards,
Radu
Strange, I tested with Oxygen 27.0 on a concept like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_kkc_prr_32c">
<title></title>
<shortdesc></shortdesc>
<conbody>
<section id="abc">
<title></title>
<p></p>
</section>
</conbody>
</concept>
So I do not think it's a problem specific to the Oxygen version, Oxygen 27 comes bundled with the same DITA DTDs as Oxygen 26.1.
Did your colleague make changes in the Oxygen Preferences->DITA page, for example selecting a custom DITA Open Toolkit? Because that custom DITA OT would be used both for publishing and for validation? Or did they make changes directly in the DITA OT DTDs?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Feb 12, 2025 12:11 pm
Re: Element section not recognised
Hi Radu.
Thanks for confirming that it is not an issue with version 27.0 (I didn't really think it would be). I will double-check my colleague's settings and un/reinstall if we don't see anything obvious.
Thanks for confirming that it is not an issue with version 27.0 (I didn't really think it would be). I will double-check my colleague's settings and un/reinstall if we don't see anything obvious.
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