Validation error (E Xerces)

Oxygen general issues.
opa
Posts: 1
Joined: Fri Jul 15, 2016 1:29 pm

Validation error (E Xerces)

Post by opa »

Hi I am pulling the following errors in my ditamap: "Attribute "id" is required and must be specified for element type "topicset"."
Any leads as to what I am doing wrong/how to fix?

Thanks in advance!
Olivier

Ditamap content:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>DITA Topic Map</title>
<topicref href="presentation.dita">
<topicref href="minimum_requirements.dita"/>
<topicref href="using_diotaplayer__gestures.dita"/>
</topicref>
<topicset href="home_screen.dita">
<topicset href="import_project.dita"/>
<topicset href="create_edit_project.dita"/>
</topicset>
<topicset href="work_space.dita">
<topicset href="tools.dita"/>
</topicset>
</map>
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Validation error (E Xerces)

Post by Radu »

Hi Olivier,

The <topicset> element is used to group topicrefs in order to conref them from other places.
So this is why according to the DITA specs, the ID attribute on a topicset is required:

https://docs.oasis-open.org/dita/v1.2/o ... icset.html

Looking at your sample DITA Map, you could probably use topicref instead of topicset.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply