Can anyone please suggest me how to get the following output by performing Transform Binary action:
Here is my input:
STRTYP=HD&STRNBR=0121&PSTLCD=776&MDLNBR=FFGC3010QS
I have to get the desired output:
<ROOT>
<STRTYP>HD</STRTYP>
<STRTYP>0121</STRTYP>
<STRTYP>776</STRTYP>
<STRTYP>FFGC3010QS</STRTYP>
</ROOT>
I have tried by using the FFD File from store:///pkcs7-convert-input.ffd But still I'm not getting the above output.. Please correct me where I have gone wrong in my xslt.
Here is my XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dp="http://www.datapower.com/extensions" extension-element-prefixes="dp">
<xsl:output method="xml" indent="yes" />
<xsl:strip-space elements="*" />
<dp:input-mapping href="store:///pkcs7-convert-input.ffd" type="ffd" />
<xsl:template match="/">
<ROOT>
<STRTYP>
<xsl:copy-of select="." />
</STRTYP>
</ROOT>
</xsl:template>
<xsl:template match="args/arg">
<STRTYP>
<xsl:apply-templates select="node() | @*" />
</STRTYP>
</xsl:template>
<xsl:template match="/*">
<ROOT>
<xsl:apply-templates select="node() | @*" />
</ROOT>
</xsl:template>
<xsl:template match="node() | @*" name="identity">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
<xsl:template match="url" />
<xsl:template match="base-url" />
<xsl:template match="args">
<xsl:apply-templates select="node() | @*" />
</xsl:template>
<xsl:template match="@*" />
</xsl:stylesheet>