Sign In| Join
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
Member
242 Points
293 Posts
Feb 11, 2011 06:21 AM|LINK
Hi ,
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 <img src=''>
<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?
XSLT 1.0
Star
9767 Points
1930 Posts
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.
46 Points
170 Posts
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:
<LEPheight>???</LEPheight>
where ??? will be the height I need to use for the selected image.
rameshgoudd
Member
242 Points
293 Posts
Set image width and height in xslt
Feb 11, 2011 06:21 AM|LINK
Hi ,
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
<img src=''>
<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?
XSLT 1.0
Articles on Sharepoint
kavita_khand...
Star
9767 Points
1930 Posts
Re: Set image width and height in xslt
Feb 11, 2011 08:37 AM|LINK
provide your input xml/html from where you want to read the height and width..
I would love to change the world, but they wont give me the source code.
rameshgoudd
Member
242 Points
293 Posts
Re: Set image width and height in xslt
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.
Articles on Sharepoint
kavita_khand...
Star
9767 Points
1930 Posts
Re: Set image width and height in xslt
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.
I would love to change the world, but they wont give me the source code.
Ben Aminnia
Member
46 Points
170 Posts
Re: Set image width and height in 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:
<LEPheight>???</LEPheight>
where ??? will be the height I need to use for the selected image.