ignore or filter DITA error messages
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Feb 28, 2020 4:02 pm
ignore or filter DITA error messages
Post by vishwavaranasi »
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
Thanks,
vishwa
vishwa
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ignore or filter DITA error messages
Hi,
Your use case is quite strange because the format and type of a file are automatically determined by the publishing engine when it is referenced in the DITA Map.
There is a tutorial written by expert Eliot Kimber about how to create your own DITA specialization DTDs:
https://www.xiruss.org/tutorials/dita-specialization/
One of the chapters there is called "Attribute Specialization Tutorial" and can be used to add your own new global attributes, but the attributes will need to be defined on all DITA elements, with the DITA 1.3 specification all new attributes need to be defined as gobal attributes and thus they become available on all elements:
https://www.oxygenxml.com/dita/1.3/spec ... butes.html
Regards,
Radu
Your use case is quite strange because the format and type of a file are automatically determined by the publishing engine when it is referenced in the DITA Map.
There is a tutorial written by expert Eliot Kimber about how to create your own DITA specialization DTDs:
https://www.xiruss.org/tutorials/dita-specialization/
One of the chapters there is called "Attribute Specialization Tutorial" and can be used to add your own new global attributes, but the attributes will need to be defined on all DITA elements, with the DITA 1.3 specification all new attributes need to be defined as gobal attributes and thus they become available on all elements:
https://www.oxygenxml.com/dita/1.3/spec ... butes.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service