I have javascript code into xslt which should check image dimension. If width is greater than height to rotate img.
<script language="javascript">
var a = 3;
var b = 1;
if (a > b) {
document.getElementById("img1").style.transform = "rotate(90deg)";
}
</script>
I tried:
1) >
2) <![CDATA[ --code --]]>
3) disable-output-escaping="yes"
But nothing works. In console see an error message
Thanks