I did the XSLT transformation.
What I missing is nil attribute. I mean that if source element has nil element true I want to map it to destination XML.
<xsl:if
test="string-length(soapenv:Envelope/soapenv:Body/b:getBLResponse/b:result/BResult:BLOut/Class:ID)=0">
<xsl:attribute name="i:nil">true</xsl:attribute>
</xsl:if>
The if above working for specific node , but I want to make it as general template, not to check every field
May be it is possible to create template which will receive xml node, than will be validation if node has nil attribute if it is , it will return with the nil attribute otherwise without nil attribute.
Below is example
With nil: Input:
<TEST>
<Child i:nil="true">asdf</Child>
</TEST>
Output:
<TEST xmlns:i="whatever" >
<OutputChild i:nil="true">asdf</OutputChild >
</TEST>
Without nil: Input + Output the same
<TEST>
<OutputChild >example</OutputChild >
</TEST>