Page 1 of 1

validate and check ... also scans non dita files

Posted: Tue Apr 03, 2012 8:51 pm
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

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

Posted: Wed Apr 04, 2012 8:44 am
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

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

Posted: Thu Apr 05, 2012 7:39 am
by pmac
Hi

They are coderefs like this:

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

PMac

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

Posted: Thu Apr 05, 2012 8:50 am
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

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

Posted: Thu Apr 05, 2012 9:22 am
by pmac
THANKS

PMac

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

Posted: Tue Jul 10, 2012 5:34 pm
by Radu
Hi,

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

Regards,
Radu