on 11-06-2008 9:11 AM
Hi,
How can I remove an empty node from the source xml in a XSLT mapping.
For e.g. If the source xml is like:
<SRC>
<Node1>SAP</Node2>
<Node2/>
<Node3>XI</Node3>
</SRC>
Then the xml should become:
<SRC>
<Node1>SAP</Node2>
<Node3>XI</Node3>
</SRC>
I need to do this because the output of my XSLT mapping is showing blank spaces for each blank node.
Thanks,
Abhishek.
Use <xsl:if>
Or else you may find different options here
http://www.dpawson.co.uk/xsl/sect2/N3328.html#d4804e304
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
try to map with default value, soe const like 0
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.