Terminology Checker rules example

Oxygen general issues.
kj_rk
Posts: 30
Joined: Thu Jul 15, 2021 10:01 am

Terminology Checker rules example

Post 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!
adrian_sorop
Posts: 73
Joined: Wed Jun 22, 2016 2:48 pm

Re: Terminology Checker rules example

Post 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.
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com
kj_rk
Posts: 30
Joined: Thu Jul 15, 2021 10:01 am

Re: Terminology Checker rules example

Post by kj_rk »

Thanks Adrian!
Post Reply