on 10-21-2009 5:47 PM
Hi All,
I am new to XSLT mapping.
My requirement is: file to XML file with CDATA, for this I am planning to use the XSLT Mapping.
I downloaded the Stylus studio, then what next, Please help meu2026
In source flat file I have 5 fileds, and target I need to generate the XML file with CDATA set for 5 fields.
Thanks,
ANU-
Hi Anu,
Is your requirement is sending 5 fields into one string on target side ,If yes
this code might help you for CDATA section
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<MT_TARGET>
<String>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>]]]]></xsl:text>
<xsl:copy-of select="*"/>
<xsl:text disable-output-escaping="yes"><!CDATA[]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA>]></xsl:text>
</String>
</MT_TARGET>
</xsl:template>
</xsl:Stylesheet>
//if you use " * " then entire source structure will go into target StringUsers node
Regards,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to learn XSLT Programming,its very easy to write, go for w3schools.com,u wl find some code snnipets and learn some XSLT functions.
XSLT Mapping will genarate output in 3 formats one is XML ,HTML and TEXT,you need to genarate XML format so select output method as XML.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Anu,
The following blog will help you on this requirement.
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards,
JP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please go through these...
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
Regards
Abhijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.