Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 29, 2012 05:09 PM by Ben Aminnia
Feb 11, 2011 06:21 AM|LINK
I have a xslt one,in that I need to set the height and width properties of image.
@NewsImage will return the total synatx of image except width and height i e
<xsl:value-of select="@NewsImage" disable-output-escaping="yes"/>
Now I want to set the height and width for this.
How can I using XSLT?
Feb 11, 2011 08:37 AM|LINK
provide your input xml/html from where you want to read the height and width..
Feb 11, 2011 08:48 AM|LINK
Thanks Kavitha for your response.
My xslt varibale returns the value of ...<img src='test.gif'>..for this i need to set the width and height parameters.
Feb 11, 2011 10:13 AM|LINK
YEs but from where fo u get the parameter value..suppose your parameter name is height then how do get the value of height=60??
or show us your xslt.
Nov 29, 2012 05:09 PM|LINK
I have the same question:
My xslt has an image defined as follows (which has height:440.1pt):
<w:binData w:name="wordml://02000001.jpg" xml:space="preserve"><xsl:value-of select="ext:EncodeBase64(LEPCoverSheetRef)" /></w:binData>
<v:shape id="Picture 1" type="#_x0000_t75" style="width:403.4pt;height:440.1pt;visibility:visible"><v:imagedata src="wordml://02000001.jpg" o:title="LEPCoverSheet" /></v:shape>
I need to change the height of this image dynamically based on something like this in the associated XML file:
where ??? will be the height I need to use for the selected image.