Page 1 of 1

Validation error (E Xerces)

Posted: Wed Oct 05, 2016 11:37 am
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>

Re: Validation error (E Xerces)

Posted: Wed Oct 05, 2016 1:21 pm
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