Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have to convert JSON to XML using XSLT 1.0. I have tried XSLT 3.0 but it doesn't work for me.
Request:
{ "Text": [ { "from":"784494", "to":"744111" } ] }
Expected Response:
<?xml version="1.0" encoding="UTF-8"?> <Text> <from>9878744785</from> <to>998777945</to> </Text>
XSLT I tried:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="3.0"> <xsl:output indent="yes"/> <xsl:template match="/"> <xsl:copy-of select="json-to-xml(root)"/> </xsl:template> </xsl:stylesheet>
I never heard of Gateway script before. I googled it and found this:
https://www.ibm.com/docs/en/acfc?topic=gatewayscript-code-examples
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to convert JSON to XML using XSLT 1.0/2.0 ?
Hi,
I have to convert JSON to XML using XSLT 1.0. I have tried XSLT 3.0 but it doesn't work for me.
Request:
Expected Response:
XSLT I tried:
I never heard of Gateway script before. I googled it and found this:
https://www.ibm.com/docs/en/acfc?topic=gatewayscript-code-examples
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.