Subject:Mapper- How Not to Output nonexisting or empty elements Author:Agustin Espinosa Date:23 Nov 2006 06:20 AM
Ivan, Many Thanks for your help, it works Perfect.
As you can imagine I am new to XSL, Sorry didn't ask this before, Is it posible to apply the same (existence) logic to all the xml mappings, without writing an IF instruction for each element?
Regards
Agustin
Subject:Mapper- How Not to Output nonexisting or empty elements Author:James Durning Date:23 Nov 2006 04:14 PM
You could use a for-each statement:
<xsl:for-each select="Customer/Address/*">
<xsl:element name="concat('Cust', name())">
<xsl:value-of select="."/>
</xsl:element>
</xsl:for-each>
Subject:Mapper- How Not to Output nonexisting or empty elements Author:Agustin Espinosa Date:24 Nov 2006 09:46 AM Originally Posted: 24 Nov 2006 09:44 AM
Hi James, Thank you very much for your help; You have pointed me on the right direction. I will implement your suggestion. Regards
Agustin