Is there a way of reordering attributes in a XML using XSLT?
For example I have a XML like
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book author="Anonymous" qty="10" price="100" title="Basic XML"/>
<book author="Anonymous" qty="20" price="200" title="Basic XLST"/>
</books>
After the transformation, i expect it to like:
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book title="Basic XML" author="Anonymous" price="100" qty="10"/>
<book title="Basic XLST" author="Anonymous" price="200" qty="20"/>
</books>
Thanks in advance.