ignore or filter DITA error messages
Posted: Wed Jun 17, 2020 9:35 am
Hi Team , we have a custom DITA doc types for the <topic> , so we have created a template file
since my DITA custom type extends DITA , and when i create a topic using above template DITA validation is throwing error
Attribute "type" is not allowed to appear in element "topic".
Attribute "format" is not allowed to appear in element "topic".
We want to allow these 2 attributes to be included when we create a topic and don not show any error messages to the user.
would you please help us how to achieve this?
Thanks,
vishwa
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//COMPANY//DTD myCustom DITA Topic//EN" "myCustomTopic.dtd">
<topic id="${customUUID}" format="dita" type="topic">
<title></title>
<body></body>
</topic>
Attribute "type" is not allowed to appear in element "topic".
Attribute "format" is not allowed to appear in element "topic".
We want to allow these 2 attributes to be included when we create a topic and don not show any error messages to the user.
would you please help us how to achieve this?
Thanks,
vishwa