Page 1 of 1

Context root links display validation errors

Posted: Thu Jan 16, 2014 9:47 pm
by pault
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

Re: Context root links display validation errors

Posted: Fri Jan 17, 2014 12:37 pm
by Radu
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