This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
You can't. That is, unless you created you own proprietory XML instruction and implemented your own XSL transfomer to handle it. But that is definately using a sledgehammer to crack a nut. I reckon you are maybe looking at the wrong technology to handle your image. I presume you are transforming this XML in a Java application? In which case, why not just handle the image directly in your app?