The following is part of the code in my input.xml file:
<info>
<name>
<surname>Sachin</surname>
<x> </x>
<given-names>J</given-names>
</name>
<x>, </x>
<name>
<surname>Sushant</surname>
<x> </x>
<given-names>K</given-names>
</name>
</info>
When I copy these nodes by using copy-of
element as in
<xsl:copy-of select="info"></xsl:copy-of>
then the following output is generated:
<info>
<name>
<surname>Sachin</surname>
<x xml:space="preserve"> </x>
<given-names>J</given-names>
</name>
<x xml:space="preserve">, </x>
<name>
<surname>Sushant</surname>
<x xml:space="preserve"> </x>
<given-names>K</given-names>
</name>
</info>
I want to remove xml:space="preserve"
from my output.xml file.