Validation error (E Xerces)

<oXygen/> general issues.
opa
Posts: 1

Validation error (E Xerces)

Wed Oct 05, 2016 11:37 am

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: 5752

Re: Validation error (E Xerces)

Wed Oct 05, 2016 1:21 pm

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/os/spec/langref/topicset.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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests