validate and check ... also scans non dita files

Post here questions and problems related to editing and publishing DITA content.
pmac
Posts: 9
Joined: Fri Mar 23, 2012 4:00 am

validate and check ... also scans non dita files

Post by pmac »

i have a project with a directory full of text files (*.txt) which are code snippets.

When i try "validate and check" i get loads of errors because these text files are not xml. It should be able to better guess the file types, yes? I don't see anywhere i can control it.


There are actually 2 checks it could do better on:

1. Problem parsing "file:/xxx/foo.txt" as DITA content.
Cause:Content is not allowed in prolog

2. Topic referenced in other topics but not in DITA Map :"file:/xxx/foo.txt"


Of course text files won't be referenced in the map.

The volume of these makes real interesting warnings / errors hard to see

thanks

PMac
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: validate and check ... also scans non dita files

Post by Radu »

Hi,

How exactly are the text files referenced in the DITA topics?
Could you give me a sample XML code for it?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
pmac
Posts: 9
Joined: Fri Mar 23, 2012 4:00 am

Re: validate and check ... also scans non dita files

Post by pmac »

Hi

They are coderefs like this:

<codeblock><coderef href="../code/ex-prog-vecadd-cplx.txt"/></codeblock>

PMac
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: validate and check ... also scans non dita files

Post by Radu »

Hi,

You are right.
I consider this a bug in Oxygen which right now treats coderef more like an xref instead of treating it as a reference to a non-DITA resource.
We will probably fix this in the upcoming Oxygen 14, in a couple of months.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
pmac
Posts: 9
Joined: Fri Mar 23, 2012 4:00 am

Re: validate and check ... also scans non dita files

Post by pmac »

THANKS

PMac
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: validate and check ... also scans non dita files

Post by Radu »

Hi,

Oxygen 14.0 which was released should fix this behavior as well.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply