Wednesday, August 28, 2013

XSLT - Resize External Graphic

Resize External Graphic
<fo:external-graphic 
src="s\image.png"  
content-height="scale-to-fit" 
height="2.00in"  
content-width="2.00in" 
scaling="non-uniform"/>

Or

<xsl:attribute-set name="googleMap">
  <xsl:attribute name="height">2.50in</xsl:attribute>
  <xsl:attribute name="content-width">6.50in</xsl:attribute>
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
  <xsl:attribute name="scaling">non-uniform</xsl:attribute>
</xsl:attribute-set>

<fo:external-graphic 
src="url('s\image.png')"
xsl:use-attribute-sets="googleMap" />
    

Related Posts:

  • XSLT - Resize External GraphicResize External Graphic <fo:external-graphic  src="s\image.png"   content-height="scale-to-fit"  height="2.00in"   content-width="2.00in"  scaling="non-uniform"/> Or <xsl:attribute-set na… Read More
  • XSL - xsl:call-template or xsl:function XSL version 1.0 There is no xsl:function in XSL version 1.0 <xsl:template name="helloWorld"> <xsl:text>Hello World!</xsl:text> </xsl:template> (...) <xsl:template match… Read More
  • XSL - Select Node by variable name Case 1 <xsl:stylesheet version="1.0"    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg"    xmlns:fo="http://www.w3.org/1999/XSL/Format"  &nbs… Read More
  • PDF Generation with XSL - FOP Create report in PDF format using XSLFO and Apache FOP XSLFO is XSL Formatting Objects and can be used for formatting XML data.Apache FOP (Formatting Objects Processor) is a Java application that reads a formatting object… Read More
  • XSLT - Tips to make you a better XSLT programmerThe combination of XML and XSLT is growing in popularity with webmasters of medium-sized and large Web sites. Prior to XSLT, changing the presentation of a Web site was a major undertaking: one had to revisit and to change ev… Read More

0 comments:

Post a Comment