Inhibit error message for @href-less xref element

Post here questions and problems related to editing and publishing DITA content.
tmakita
Posts: 114
Joined: Fri Apr 08, 2011 7:58 am

Inhibit error message for @href-less xref element

Post by tmakita »

Here is question that I don't want to ask.
One of my users want to inhibit the Oxygen error message for @href-less xref element because they sometimes refer external resources without URL (Such as other documents that we cannot determine URL)
Here is sample snap-shot and authoring.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_byb_1sb_d2c">
    <title>Xref Test</title>
    <shortdesc></shortdesc>
    <conbody>
        <p></p>
        <p>Xref with @href <xref href="https://www.w3.org/" format="html" scope="external"/></p>
        <p>Xref without @href: <xref>Link to external resource</xref></p>
    </conbody>
</concept>
image.png
image.png (109.7 KiB) Viewed 147 times
Are there any solutions?
Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Radu
Posts: 9343
Joined: Fri Jul 09, 2004 5:18 pm

Re: Inhibit error message for @href-less xref element

Post by Radu »

Hi

Maybe you could try to add a validation problems filter using our APIs from a plugin:
https://github.com/oxygenxml/wsaccess-j ... lemsFilter

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 114
Joined: Fri Apr 08, 2011 7:58 am

Re: Inhibit error message for @href-less xref element

Post by tmakita »

Hi Radu,
Thank you for your quick reply.
I will send the link to my colleague and let him implement.
Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply