[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] [SPAM] How to rotate images? - DocBook XSL or FOP problem?
After having done some research I agree with Bob
Stayton that this is an FOP (trunk) problem.
Hence I give up the idea to do the rotation through a
processing instruction :(
Thanks,
Darya
--- Darya Said-Akbari <darya_akbari@yahoo.com>
schrieb:
> Sorry in my version I have the fo:block. But this
> was
> not the reason.
>
> I prefer not to use the image editor because I want
> to
> let our people to decide on the fly whether they
> want
> to rotate an image or not.
>
> Going through an image editor is too time consuming.
>
> I am not sure whether it's an FOP problem or whether
> I
> have to do much more in my customization :(
>
> Or is it really just an FOP problem with rotation
> and
> I should give up the idea with a processing
> instruction?
>
> Regards,
> Darya
>
> --- Bob Stayton <bobs@sagehill.net> schrieb:
>
> > I'm surprised that FOP didn't complain about your
> > block-container content.
> > An fo:external-graphic is not a valid child of
> > fo:block-container. It
> > should be:
> >
> > <fo:block-container
> > <fo:block
> > <fo:external-graphic
> >
> > I don't know if that will fix this problem, but it
> > might help.
> >
> > You might be pushing the envelop in FOP with
> rotated
> > graphics. As I
> > suggested before, if you can't get it to work in
> > FOP, you might need to use
> > an image editor to rotate the graphic in the image
> > file itself, so FOP
> > doesn't have to deal with it.
> >
> > Bob Stayton
> > Sagehill Enterprises
> > DocBook Consulting
> > bobs@sagehill.net
> >
> >
> > ----- Original Message -----
> > From: "Darya Said-Akbari" <darya_akbari@yahoo.com>
> > To: <docbook-apps@lists.oasis-open.org>
> > Sent: Wednesday, October 25, 2006 9:22 AM
> > Subject: Re: [docbook-apps] [SPAM] How to rotate
> > images? - DocBook XSL or
> > FOP problem?
> >
> >
> > >I use the current FOP trunk version. There are
> some
> > > very strange effects I see.
> > >
> > > First of all, when your imagedata has a
> > width="100%"
> > > attribute nothing rotates.
> > >
> > > On the other hand when you rotate you are out of
> > sync
> > > with the rest of the document and only half
> images
> > are
> > > visible.
> > >
> > > Is that a DocBook XSL or a FOP problem?
> > >
> > > I don't know what else than Bob Stayton
> > recommended I
> > > can do :(
> > >
> > > Regards,
> > > Darya
> > >
> > >
> > > --- Darya Said-Akbari <darya_akbari@yahoo.com>
> > > schrieb:
> > >
> > >> I prefer the processing instruction way.
> > >>
> > >> Do I have to copy and paste the 'process.image'
> > >> template from fo/graphics.xsl into my
> > customization?
> > >>
> > >> If yes, how does the adaption in my
> customization
> > >> 'process.image' looks like?
> > >>
> > >> The following does not work :(
> > >>
> > >> <xsl:variable name="rotate">
> > >> <xsl:call-template name="dbfo-attribute">
> > >> <xsl:with-param name="pis"
> > >> select="../processing-instruction('dbfo')"/>
> > >> <xsl:with-param name="attribute"
> > >> select="'reference-orientation'"/>
> > >> </xsl:call-template>
> > >> </xsl:variable>
> > >>
> > >> <xsl:choose>
> > >> <xsl:when test="$rotate != ''">
> > >> <fo:block-container
> > >> reference-orientation="$reference-orientation">
> > >> <fo:external-graphic ...
> > >> </fo:block-container>
> > >> </xsl:when>
> > >> <xsl:otherwise>
> > >> <fo:external-graphic ...
> > >> </xsl:otherwise>
> > >> </xsl:choose>
> > >>
> > >> Can someone give me an example?
> > >>
> > >> Regards,
> > >> Darya
> > >>
> > >>
> > >> --- Bob Stayton <bobs@sagehill.net> schrieb:
> > >>
> > >> > Oddly enough, there is no way to indicate a
> > >> rotated
> > >> > image in DocBook.
> > >> > There is no orient="land" attribute as there
> is
> > on
> > >> > CALS tables.
> > >> >
> > >> > Assuming you add a processing instruction to
> > your
> > >> > mediaobject, imageobject,
> > >> > or imagedata element to indicate a rotated
> > image,
> > >> > you could write a
> > >> > customization of the template named
> > >> 'process.image'
> > >> > from fo/graphics.xsl
> > >> > that puts the fo:external-graphic into an
> > >> > fo:block-container:
> > >> >
> > >> > <fo:block-container
> reference-orientation="90">
> > >> > <fo:external-graphic ...
> > >> >
> > >> > Or you could use image editing software and
> > create
> > >> a
> > >> > copy of your image
> > >> > file with the image rotated.
> > >> >
> > >> > Bob Stayton
> > >> > Sagehill Enterprises
> > >> > DocBook Consulting
> > >> > bobs@sagehill.net
> > >> >
> > >> >
> > >> > ----- Original Message -----
> > >> > From: "Darya Said-Akbari"
> > <darya_akbari@yahoo.com>
> > >> > To: <docbook-apps@lists.oasis-open.org>
> > >> > Sent: Friday, October 06, 2006 5:48 PM
> > >> > Subject: [docbook-apps] [SPAM] How to rotate
> > >> images?
> > >> >
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > Is there a way I can rotate my images with
> > >> DocBook
> > >> > > XSL?
> > >> > >
> > >> > > Regards,
> > >> > > Darya
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> > >
> >
>
___________________________________________________________
> > >> > > Telefonate ohne weitere Kosten vom PC zum
> PC:
> > >> > http://messenger.yahoo.de
> > >> > >
> > >> > >
> > >> >
> > >>
>
=== message truncated ===
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]