Page 1 of 1

v615: dubious JSON quoted escape

Posted: 22 Apr 2022, 16:40
by jmk
Many views are not functional when instance names or descriptions are containing an ' character.

<= Function eas:renderJSAPIText@common/core_utils.xsl is escaping &apos; resulting in illegal JSON expressions (e.g. "\^'" is not legal json per JSON Notation standard).

A fix would be to rewrite some part of this function logic but, maybe, a switch to fn:serialize(XXX,map{'method':'json'}) which is native in Xsl 3.1 could give a better long term solution.

As an example, I'm attaching a new version of enterprise/api/core_api_el_bus_cap_to_app_mart.xsl (used in the 'new org summary view') using XSLT/XPATH 3.1 native capabilities : maps, arrays and fn:serialize


J.-M.

Re: v615: dubious JSON quoted escape

Posted: 27 May 2022, 06:33
by tkinte
Hi

The same occurs with core_el_org_summary_new.xsl.

Code: Select all

'
and

Code: Select all

 - 
characters.

Best regards.

Tshitshi