Re: [xsl] Transparent Images

Subject: Re: [xsl] Transparent Images
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Tue, 24 Feb 2004 16:20:06 -0000
Hi Ken,

Thanks for response (complex receding now).

It's not that I can't render any image or indeed a png image.  I can render
most types of images, including png.  The problem (and I apologise if I did
not explain it adequately) is that I have a png image which is transparent.
This image sits on top of a grey background.  Both image and background are
created in block-containers in region-before.  The image background is white
and it is this colour which is selected as the transparent colour for the
png.  Accordingly, when rendered, I was hoping that the png's white
background would be transparent and that the grey background would show
through the transparent sections of the png.  It doesn't.  The background of
the image is a whote square sitting on top of the grey background.

I don't know if this is an xsl problem or a fop problem.  What I am first
trying to establish is what should be the default xsl behaviour for a
transparent png in this context.  Should the grey background underneath show
through the transparent sections of the png?

If the default behaviour doesn't help me, is there some attribute I need to
set (eg Transparent) which will give me what I need.

Thanks for any help you can give.



----- Original Message -----
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 24, 2004 3:21 PM
Subject: Re: [xsl] Transparent Images

> At 2004-02-24 14:59 +0000, Mark Williams wrote:
> >Is anyone able to tell me what you need to do to render a transparent png
> >image transparently in xslt within an absolutely positioned
> >in one of the static regions.  Is there some magic involved because I
> >can;t get it to work.
> Are you able to render any PNG image in an absolutely-positioned
> block-container in a static region?  Your question could be an XSL-FO
> question of "how do I do any image" or it could be an application-specific
> "why doesn't transparent PNG work when I can display any other image using
> my software".  It was sufficiently vague to not know the true nature of
> question.
> >BTW, using FOP.
> Not everyone is using FOP so perhaps this is why there wasn't a big
> response for a tool-specific question.
> If it is the first question "how do I do any image?" then what errors are
> you getting or undesirable result?
> If it is the second question "why doesn't it work in FOP?" then you could
> ask a FOP-oriented list or wait for someone who knows FOP to answer.
> >I posted a message a few days ago that seems to have been universally
> >ignored (feel that complex growing!).
> Perhaps each person willing to volunteer an answer thought the question
> being asked was "the other question" they didn't know.
> ...................... Ken
> --
> Public courses: Spring 2004 world tour of hands-on XSL instruction
> Each week:   Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
> United States: Washington, DC March 15; San Francisco, CA March 22
> Finland April 26; Hong Kong May 17; Germany May 24; London June 07
> World-wide on-site corporate, government & user group XML training
> G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.
> Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
> Male Breast Cancer Awareness
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread