Hi,
I need to set the default value to destination depending on the input from Source schema.
The problem is that in the inbound XML file Source node may appear or may not.Following is the source schema structure.
<ns0:Delivery xmlns:ns0="http://POCIATA.test">
<TicketReferenceValue TicketReferenceValueType="AC">test</TicketReferenceValue>
</ns0:Delivery>
<TicketReferenceValue TicketReferenceValueType="AC">test</TicketReferenceValue> this node may not be appear in the source then I need to set the default value as "ANY" in destination.
If the node is present it will take the TEST as value.
But how to set the default as ANY if complete node is not present in the source schema.
Can any one having the same scenario, can I use the INLINE XSLT for the same.
Regards,Sameer
use inline xslt template and include following line:
xsl:if test="$param and normalize-space($param) !=''"
You can use Inline XSLT (as proposed) or Inline C#.
If you prefer to use standard functoids, I would suggest the Logical Functoid or simply the String Size functoid with a Logical Greater than functoid, if TicketReferenceValue = "" is equivalent to "no TicketReferenceValue" .Then you can use the value mapping functoid to map the value or a string constant "ANY".
Thomas
<<Yes, we can>>
Did he speak about Biztalk?