I have HTML in XML format which I am parsing using XSLT. My HTML looks like this:
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
</head>
<body>
<img height="" width="' src="google.gif?<>" />
</body>
</html>
After XSLT parsing it looks like this:
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
</head>
<body>
<img height="" src="google.gif?<>" width=""/>
</body>
</html>
I want @src
as last attribute like <img height="" width="" src="google.gif?<>" />
, but by default attributes are sorted in alphabetical order. I am not able to do it using <xsl:sort>
.