Simple DITA topic validation question
Posted: Wed Jul 23, 2014 6:07 pm
Hi,
Following DITA topic validation in oXygen XML Author reports 4 errors.
2.1.3.4.1 ID attribute
http://docs.oasis-open.org/dita/v1.2/os ... id.html#id
Regards,
Toshihiko Makita
Following DITA topic validation in oXygen XML Author reports 4 errors.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<topic id="topic_001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
<title>Topic title #1</title>
<body>
<p id="p_001">ABC</p>
<p id="p_002">DEF</p>
</body>
<topic id="topic_002">
<title>Topic title #2</title>
<body>
<p id="p_001">ABC</p>
<p id="p_002">DEF</p>
</body>
</topic>
</topic>
- E [ISO Schematron] The id attribute value "p_001" is not unique within the topic that contains it.
E [ISO Schematron] The id attribute value "p_002" is not unique within the topic that contains it.
E [ISO Schematron] The id attribute value "p_001" is not unique within the topic that contains it.
E [ISO Schematron] The id attribute value "p_002" is not unique within the topic that contains it.
2.1.3.4.1 ID attribute
http://docs.oasis-open.org/dita/v1.2/os ... id.html#id
So I think the id attributes must be unique only within the each topics. Is this a correct validation result?Note: Thus, within a single XML document containing multiple peer or nested topics, the IDs of the non-topic elements only need to be unique within each topic without regard to the IDs of elements within any ancestor or descendant topics.
Regards,
Toshihiko Makita