On 15.03.2019 13:10, Mukul Gandhi gandhi(_dot_)mukul(_at_)gmail(_dot_)com wrote:
The order of keys in above JSON output is not same as the input JSON. In
the JSON, I wanted fName and lName pair to be replaced by the 'name'
key, and wished that order of keys in JSON was preserved.
I think, with XPath 3.1 maps the ordering of keys has no relevance, and
from that point of view your XPath 3.1 map solution above is fine.
It is true, that is a shortcoming of XPath 3.1 and XSLT 3 maps, the
order items is not defined.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--