v615: dubious JSON quoted escape
Posted: 22 Apr 2022, 16:40
Many views are not functional when instance names or descriptions are containing an ' character.
<= Function eas:renderJSAPIText@common/core_utils.xsl is escaping ' 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.
<= Function eas:renderJSAPIText@common/core_utils.xsl is escaping ' 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.