Skip to main content
Rsfl
Inspiring
July 15, 2013
Answered

FM inserts wrong/strange doctype declaration

  • July 15, 2013
  • 1 reply
  • 832 views

When I create and save a new DITA Task in FM11 (using DITA 1.1), FM writes 'Concept' as doctype even though referencing the correct task dtd. FM also auto-inserts a concept element as root element. The XML looks like this:

The structapps file looks fine to me and also contains the correct doctype statement. Do you have any idea where else I could look to find the error?

Robert

This topic has been closed for replies.
Correct answer Rsfl

OK, I found it now. Independent from what is configured elsewhere, FM simply inserts the FIRST element from the EDDmarked as 'valid as root element'.

I used a flat EDD with all elements in one file.

So I have to work with separate EDDs for the different topic types to have only a single valid root per file.

1 reply

Inspiring
July 15, 2013
Rsfl
RsflAuthor
Inspiring
July 15, 2013

Gorly, thats an interesting topic but it seems that my problem is slightly different. The mapping of the apps is OK and I see no problem in the structapps. My main issue is where does the doctype statement in the saved XML file come from?

As a test, I changed the doctype statement in the structapps (e.g. to "abc") but the doctype in the saved file is unaffected..

Robert

Rsfl
RsflAuthorCorrect answer
Inspiring
July 15, 2013

OK, I found it now. Independent from what is configured elsewhere, FM simply inserts the FIRST element from the EDDmarked as 'valid as root element'.

I used a flat EDD with all elements in one file.

So I have to work with separate EDDs for the different topic types to have only a single valid root per file.