Page 1 of 1

Issue conref and oxy_xpath() with descendant-axis causes an error in authorMode CSS

Posted: Mon Jun 02, 2025 8:09 am
by yokota
DITA document using conref and applying customized CSS in AuthorMode ,
Oxygen logged an error as below;

```
[CSS]:XPath " if (./descendant::special => exists()) then ('TEXT') else ('')" failed: XPath failed due to: Cannot invoke "ro.sync.ecss.extensions.api.Content.getString(int, int)" because "this.f" is null
```
The CSS, oxy_xpath() contains descendant axis .

Code: Select all

elem::after {
content: oxy_xpath("\
       if (\
            ./descendant::special => exists()) \
        then (TEXT') else ('')",
         processChangeMarkers, true);
}
Result views of conref-or-not are expected (when exists descendant target elem, "TEXT" is appeared).
But error log is unexpected.
Could we avoid this error?

Because of :has() limitation ( writing `* > * > ...` is unmatch the case),
we have to oxy_xpath() and descendant-axis to detect the target.

Oxygen version is
<oXygen/> XML Author 27.1, build 2025041508

Regards,

Re: Issue conref and oxy_xpath() with descendant-axis causes an error in authorMode CSS

Posted: Mon Jun 02, 2025 2:16 pm
by Radu
Hi Tatsuro,

Could you send us via email (support@oxygenxml.com) a small sample DITA XML project with steps with the custom CSS in order to reproduce the problem on our side?

Regards,
Radu