Page 1 of 1

Terminology Checker rules example

Posted: Fri Mar 10, 2023 9:03 pm
by kj_rk
Hi Experts,
I am looking for some examples of using the various elements described here - https://www.oxygenxml.com/doc/versions/ ... xv_qbz_mtb.
In particular, looking for a way to match the use of a keyref <ph keyref="<value>"/> which should be used with 'an' and not 'a'.
I am unable to add this to a rule because xml content is not allowed in the <match> element.
I am not able to figure out how to use the <xpath-context> to achieve this check.
Any examples of a file will be very helpful.
Thanks!

Re: Terminology Checker rules example

Posted: Mon Mar 13, 2023 2:09 pm
by adrian_sorop
Hi,
Unfortunately, Terminology Checker can't be used for such complex checks. I've logged an internal issue to extend its functionality.
I think Schematron will be a better fit for that use case.
Regards,
Adrian S.

Re: Terminology Checker rules example

Posted: Tue Mar 14, 2023 7:10 pm
by kj_rk
Thanks Adrian!