Hi
I'm pretty new to xml so forgive me if this is very simple...
I've got a xml file, and am writing a xslt for wordml.
basically, when I'm linking pictures, I'd like to determine the size of the picture and dynamically set the style properties to fit the picture to the page and maintain aspect ratio.
at the moment all I have is hard coded width and height properties...
any ideas on how to achieve this?
Thanks
--------------------
Procrastinate Now!
I'm pretty new to xml so forgive me if this is very simple...
I've got a xml file, and am writing a xslt for wordml.
basically, when I'm linking pictures, I'd like to determine the size of the picture and dynamically set the style properties to fit the picture to the page and maintain aspect ratio.
at the moment all I have is hard coded width and height properties...
Code:
<w:p>
<w:pict>
<v:shape id="" type="" style="[b]width:420pt;height:260pt[/b];z-index:1pt">
<v:imagedata src="{@src}" o:title="{@id}"/>
<w10:bordertop type="single" width="4"/>
<w10:borderleft type="single" width="4"/>
<w10:borderbottom type="single" width="4"/>
<w10:borderright type="single" width="4"/>
</v:shape>
</w:pict>
</w:p>
any ideas on how to achieve this?
Thanks
--------------------
Procrastinate Now!