Skip to main content
September 19, 2013
Question

DITA topic validation error

  • September 19, 2013
  • 1 reply
  • 969 views

Hello,

I've been working on DITA Topic (Framemaker 11), defined new elements in EDD like "Caution" and "Warning" same like element "Note" which has already defined in Topic EDD.

Here I have edited EDD to define warning and caution elements: "D:\Adobe\AdobeFrameMaker11\Structure\xml\DITA\app\DITA-Topic-FM".

When I open a dita topic am getting the below mentiond error but able to see Warning and caution elements:

XML Read Report Log

Source Document: \\INLEN-FJK2CQ1\common_storage\Technical publications\DITA_Projects\Water_Products\Working\Topics\Exp-Notes_1.dita

XML Parser Messages (Document Instance)

Error at file \\INLEN-FJK2CQ1\common_storage\Technical publications\DITA_Projects\Water_Products\Working\Topics\Exp-Notes_1.dita, line 51, char 10, Message: Unknown element 'caution'

Error at line 53, char 10, Message: Unknown element 'warning'

Error at line 96, char 57, Message: Element 'caution' is not valid for content model '(dl|parml|fig|syntaxdiagram|imagemap|image|lines|lq|note|hazardstatement|object|ol|p|pre|codeblock|msgblock|screen|simpletable|sl|table|ul|data|data-about|draft-comment|foreign|unknown|required-cleanup|bodydiv|example|section)*'

Please suggest.

This topic has been closed for replies.

1 reply

ScottPrentice
Inspiring
September 19, 2013

You'll need to add those elements and general rule updates to the DTD(s) as well. And unless you do this "properly" you'll be breaking DITA. Read up on DITA specialization for details on how to add elements to the DITA model properly.

However, the DITA note element is set up to change to different types of "notes" based on the value of the @type attribute. If note/@type='caution', the note label will change to "Caution" .. same for "warning". Check out the default values for the note/@type attribute and you'll see the options. If you want a note type that's not available, select "other" then enter the note label in the @othertype attribute.

Cheers,

...scott