on 07-25-2007 12:36 AM
All,
we are getting a response from a system in the following structure,
<response>
<responsetext><Employee><name>john</name></Employee><Employee><name>sam</name></Employee></responsetext>
</response>
The entire XML between <responsetext> is a string value of that node. we need to get the target xml of the following structure,
<target>
<Employee>
<name>john</name>
</Employee>
<Employee>
<name>sam</name>
</Employee>
</target>
How can we do this in a XSL mapping?
Thanks for the help.
Use a xslt like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
<xsl:template match="/response/responsetext">
<target>
<xsl:value-of select="." disable-output-escaping="yes"/>
</target>
</xsl:template>
</xsl:stylesheet>
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Used Advanced UDFs and implemented the mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try with this
Some scenarios
/people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.