Hi, thanks for your quick response. Here the jpg and xsl.
I'll try this later. Don't have subversion installed at work. I'll give back feedback when I get home.In the meantime, would you please verify if the problem persists with FOP Trunk (from Subversion)?
Cheers Jonny
From: Jeremias Maerki <[EMAIL PROTECTED]> Reply-To: [email protected] To: [email protected] Subject: Re: Invalid ICC profile: Problem with external graphic in 0.91beta Date: Wed, 22 Mar 2006 16:36:09 +0100 If you provide everything that is necessary to reproduce the problem (FO file and JPEG) I'll look into it. In the meantime, would you please verify if the problem persists with FOP Trunk (from Subversion)? On 22.03.2006 16:24:03 Johannes Becker wrote: > Hi, >> I'm having a strange problem with embedding a jpg as an external graphic on > a Win System with JDK 1.4.x. This problem doesn't occour on a Linux mashine. > It also doesn't appear with FOP 0.25, both on the same Win and Linux system.> > I always get an: > "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC> Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data"> error. > > According to:> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200510.mbox/[EMAIL PROTECTED]> this isn't a FOP message. > > According to: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4377282 > "...Most likely it is due to running the win32 jre, which doesn't have > profiles installed." > > Since this error doesn't tell me a thing and I'm not a pro: > Is it a bug in 0.91 not to catch this error or ???? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/ Jetzt gratis downloaden!
<<attachment: car.jpg>>
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> <xsl:variable name="before-table-space">3mm</xsl:variable> <xsl:variable name="before-grey-header">5mm</xsl:variable> <xsl:variable name="before-big-header">6mm</xsl:variable> <xsl:variable name="break">4mm</xsl:variable> <xsl:variable name="f-family">Helvetica</xsl:variable> <xsl:variable name="font-size">10pt</xsl:variable> <xsl:variable name="font-size-small">6pt</xsl:variable> <xsl:variable name="font-size-big">13pt</xsl:variable> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="rest" page-width="210mm" page-height="297mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <fo:region-body margin-left="36.75mm" margin-top="45mm"/> <fo:region-before extent="100mm"/> <fo:region-start extent="32.75mm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="rest"> <fo:static-content flow-name="xsl-region-before"> <fo:table width="180mm" table-layout="fixed"> <fo:table-column column-width="3.5mm" column-number="1"/> <fo:table-column column-width="72mm" column-number="2"/> <fo:table-column column-width="71.25mm" column-number="3"/> <fo:table-body> <fo:table-row> <fo:table-cell column-number="2"> <fo:block font-weight="bold"> xxx </fo:block> </fo:table-cell> <fo:table-cell column-number="3"> <fo:block text-align="right">   </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell column-number="2"> <fo:block font-weight="bold"> <fo:inline color="grey">xxx</fo:inline> </fo:block> </fo:table-cell> <fo:table-cell column-number="3"> <fo:block text-align="right">   </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell column-number="2" padding-before="10mm"> <fo:block> Top 30 </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:static-content> <fo:static-content flow-name="xsl-region-start"> <fo:block-container height="100%" margin-top="230mm"> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold">xxx</fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold">xxx</fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold">xxx</fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold">xxx</fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold"> http://<xsl:value-of select="/xxx"/> </fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold"> </fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold"> <xsl:value-of select="/xxx"/> </fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold"> </fo:block> <fo:block text-align="right" font-size="{$font-size-small}" font-weight="bold"> <xsl:value-of select="/xxx"/> <fo:page-number/> </fo:block> </fo:block-container> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <xsl:call-template name="body"/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template name="body"> <fo:block> <fo:table width="143mm" table-layout="fixed" font-size="{$font-size}"> <fo:table-column column-width="32.75mm" column-number="1"/> <fo:table-column column-width="4mm" column-number="2"/> <fo:table-column column-width="106.25mm" column-number="3"/> <fo:table-body> <xsl:for-each select="/xxx/*"> <fo:table-row> <fo:table-cell column-number="1"> <fo:block font-weight="bold"> xxx </fo:block> </fo:table-cell> <fo:table-cell column-number="3"> <fo:block> <xsl:value-of select="."/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> <fo:block space-before="10mm"> </fo:block> <fo:table width="143mm" table-layout="fixed" font-size="{$font-size}"> <fo:table-column column-width="30mm"/> <fo:table-column column-width="32.75mm"/> <fo:table-column column-width="15mm"/> <fo:table-column column-width="41.55mm"/> <fo:table-column column-width="23.7mm"/> <fo:table-body> <fo:table-row> <xsl:for-each select="/xxx/*"> <fo:table-cell> <fo:block font-weight="bold"> xxx </fo:block> </fo:table-cell> </xsl:for-each> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block> </fo:block> </fo:table-cell> </fo:table-row> <xsl:for-each select="xxx/xxx"> <fo:table-row> <fo:table-cell> <fo:block space-before="1.5mm"> <xsl:value-of select="xxx/xxx"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <fo:external-graphic src="car.jpg" height="32.75mm" space-before="1.5mm"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block space-before="1.5mm" text-align="center"> <xsl:value-of select="counter"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block space-before="1.5mm"> <xsl:value-of select="asset/title"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block space-before="1.5mm" text-align="end"> <xsl:value-of select="xxx/xxx"/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </fo:block> </xsl:template> </xsl:stylesheet>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
