From: SourceForge.net <no...@so...> - 2008-10-25 11:21:36
|
Bugs item #2020774, was opened at 2008-07-17 18:34 Message generated for change (Comment added) made by mzjn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2020774&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: print/FO/PDF >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Dean Nelson (deannelson) Assigned to: Nobody/Anonymous (nobody) Summary: default.image.width inop on FO stylesheets Initial Comment: I'm trying to use the 'default.image.width' parameter to use as a default image size. Here is the line in my customization layer: <xsl:param name="default.image.width">3in</xsl:param> and then in the source: <graphic align="center" fileref="basicFlow.png"/> However, the resulting image is very large - like 50% of it exceeds the page boundaries. It seems like no matter what I put in there it always shows up WAY too big. Here is the FO code (xsltproc generated): <fo:external-graphic src="url(images/basicFlow.png)" width="3in" height="auto" content-width="auto" content-height="auto" text-align="center"/> and here is what is generated when I explicitly use a width with the graphic: <fo:external-graphic src="url(images/basicFlow.png)" width="3in" height="auto" content-width="scale-to-fit" content-height="scale-to-fit" text-align="center"/> which presents the correct image size. ---------------------------------------------------------------------- >Comment By: Mauritz Jeanson (mzjn) Date: 2008-10-25 11:55 Message: An additional xsl:when clause in the scalefit variable in graphics.xsl sets content-width to "scale-to-fit" when $default.image.width != ''. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2020774&group_id=21935 |