I have the following XML
<list>
<foo attr1="value" attr2="red"> </foo>
<foo attr1="xx" attr2="blue"> </foo>
<foo attr1="yy" attr2="green"> </foo>
</list>
which I want to become:
<list>
<foo attr1="value" attr2="red"/>
<foo attr1="xx" attr2="blue"/>
<foo attr1="yy" attr2="green"/>
</list>
Is there a XSLT option for removing the spaces out of the foo nodes?
1 Answer