What's the possible cause of DOTJ013E error when compiling a markdown in a ditamap?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
galanohan
Posts: 115
Joined: Mon Jul 10, 2023 11:49 am

What's the possible cause of DOTJ013E error when compiling a markdown in a ditamap?

Post by galanohan »

image.png
I'm having this type of error when building a webhelp containing md and dita files.
image.png
For example, this document.
Anomaly_Detection_Engine.zip
I don't see any error of it, it follows the syntax of markdown but the error message said :


[DOTJ013E] Failed to parse the referenced file 'file:/D:/dita_gitlab/sandbox/dita/md/Anomaly_Detection_Engine.md'.: file:/D:/dita_gitlab/sandbox/dita/md/Anomaly_Detection_Engine.md Line 1:Content is not allowed in prolog.

but for line 1 of this document, it's the title of heading 1.

Is is caused by the encoding?

Thanks!
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: What's the possible cause of DOTJ013E error when compiling a markdown in a ditamap?

Post by Radu »

Hi,
Can you attach a sample which contains a small complete DITA project (Map + topics) exhibiting the problem? Just by creating a map and referencing the markdown file seems to work for me when publishing to HTML5 for example.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
galanohan
Posts: 115
Joined: Mon Jul 10, 2023 11:49 am

Re: What's the possible cause of DOTJ013E error when compiling a markdown in a ditamap?

Post by galanohan »

Looks like the error was caused by the attribute format in <xref/> element in dita.
image.png
I set a xref to a md file but didn't specify the format of this md file in <xref/>.
After adding the attribute and value, no error was reported.

Thanks!
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: What's the possible cause of DOTJ013E error when compiling a markdown in a ditamap?

Post by Radu »

Hi,
You are correct, the xref needs to have format=markdown.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply