Issue conref and oxy_xpath() with descendant-axis causes an error in authorMode CSS
Posted: Mon Jun 02, 2025 8:09 am
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 .
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,
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);
}
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,