I want to scale the image. I mean my image name and width and height are in the XML. So i want to associate a XML tag as image source and set width, height from XML tag as well. How would i do it?
>I want to scale the image. I mean my image
>name and width and height are in the XML. So
>i want to associate a XML tag as image
>source and set width, height from XML tag
>as well. How would i do it?
I'm not quite sure what you're getting at. I assume your talking about generating an HTML page from an XML document using XSLT.
It sounds like you're describing two situations, one where the image file and it's details are identified in your XML source file, the other where the image is directly embedded within the XML (say in a CDATA section).
You can process anything in an XML document using XSLT but embedded data of this nature is probably much better processed by a call to some JavaScript/ECMAScript. Use the script to determine the embedded image's dimensions.