Context root links display validation errors

<oXygen/> general issues.
pault
Posts: 69
Joined: Thu Mar 21, 2013 12:55 am

Context root links display validation errors

Post by pault » Thu Jan 16, 2014 9:47 pm

To link between documents residing in different ditamaps, we are using URL formats like this:

Code: Select all


<xref href="/documentation/upgrade/doc/upgrade/ds/upgrdVerSpecif.html"
format="html" scope="external">Version specific upgrade instructions</xref>
instead of an absolute URL:

Code: Select all


<xref href="[b]http://www.ds.com[/b]/documentation/upgrade/doc/upgrade/ds/upgrdVerSpecif.html"
format="html" scope="external">Version specific upgrade instructions</xref>
This allows us to test the documents on a staging server before publishing; the generated links work great.

The problem is that when you validate a ditamap, you get errors:

Code: Select all


No profile (100 items):

System ID: /Users/pt/work/documentation_dita/ds/RNdse32/RNdse32.dita
Engine name: oXygen
Severity: warning
Description: Reference "file:/documentation/upgrade/doc/upgrade/ds/upgrdVerSpecif.html" does not exist.
Type: Reference
Start location: 212:20
End location: 212:96
Length: 76
...
Is there some way to avoid displaying these kinds of errors? It interferes with catching actual problems.

Thanks,

Paul

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

Re: Context root links display validation errors

Post by Radu » Fri Jan 17, 2014 12:37 pm

Hi Paul,

When you press the Validate and check for completeness toolbar button the dialog which shows up has a checkbox called Check the existence of non-DITA referenced resources. You can uncheck that to remove the errors. But this will also avoid checking image references.
Maybe another approach for you would be to save the received errors (right click in the results panel and Save Results as XML) then apply an XSLT stylesheet which removes a part of them, all errors which have this text file:/documentation in the Description field for example.

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

Post Reply