validate and check ... also scans non dita files

pmac
Posts: 9
Joined: Fri Mar 23, 2012 4:00 am

validate and check ... also scans non dita files

Post by pmac » Tue Apr 03, 2012 8:51 pm

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: 6388
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Wed Apr 04, 2012 8:44 am

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 » Thu Apr 05, 2012 7:39 am

Hi

They are coderefs like this:

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

PMac

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

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

Post by Radu » Thu Apr 05, 2012 8:50 am

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 » Thu Apr 05, 2012 9:22 am

THANKS

PMac

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

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

Post by Radu » Tue Jul 10, 2012 5:34 pm

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