Subject:Auto-Skip empty values Author:Ryan Gillis Date:21 Nov 2007 11:21 AM
In my translation map, when an incoming XML field is empty, the default behavior of Stylus is to generate an empty field on the other side of the map. I am trying to find a method, other then writing 120 nearly identical if statements:
Subject:Auto-Skip empty values Author:James Durning Date:22 Nov 2007 11:02 AM
One possible way would be to have a dynamic mapping in your xslt like so:
<my:mapping xmlns:my="internal">
<attr name="field1" output="LOCATION1"/>
<attr name="field2" output="LOCATION2"/>
<attr name="field3" output="LOCATION3"/>
<attr name="field4" output="LOCATION4"/>
<attr name="field5" output="LOCATION5"/>
</my:mapping>