Page 1 of 1

Inhibit error message for @href-less xref element

Posted: Thu Jan 23, 2025 12:08 pm
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
Are there any solutions?
Regards,

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

Posted: Thu Jan 23, 2025 12:17 pm
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

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

Posted: Thu Jan 23, 2025 12:58 pm
by tmakita
Hi Radu,
Thank you for your quick reply.
I will send the link to my colleague and let him implement.
Regards,