on 07-30-2015 10:38 AM
Hi SDNites,
I have all the fields to be mandatory in target system. Towards the source I am picking the CSV file using FCC. Even if the field has been set as blank value in source file the tag gets generated ( Ex. <field1 /> ). Due to this the mapping is passed succesfully though all the fileds on the receiver side has cardinality 1. One of the way to achiev the same is to do mapping in each field using createif node function but there are quite a lot fields to handle. Please advise if there is any other way to address the same.
Regards,
abhishek
Hi Gupta,
as per my understanding, if you want to remove the empty tags u can use below code
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[not(@*|*|comment()|processing-instruction())
and normalize-space()='' ]"/>
</xsl:stylesheet>
and in Operational mapping use first above mapping and second use normal mapping
BR,
Maheswarareddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
Have you tried Mapwithdefault function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.