Re: [docbook-apps] [SPAM] How to rotate images? - DocBook XSL or FOP problem?

From
Earya Raid-Bkbari
Date
2006-10-26T07:14:48+00:00
ID
Thread
Re: [docbook-apps] [SPAM] How to rotate images? - DocBook XSL or FOP problem?
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 <> 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
> 
> 
> 
> ----- Original Message ----- 
> From: "Darya Said-Akbari" <>
> To: <>
> 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 <>
> > 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 <> 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
> >> > 
> >> >
> >> >
> >> > ----- Original Message ----- 
> >> > From: "Darya Said-Akbari"
> <>
> >> > To: <>
> >> > 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
> >> > >
> >> > >
> >> >
> >>
> >
>
---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail:
> >> > 
> >> > > For additional commands, e-mail:
> >> > 
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
>
___________________________________________________________
> >>
> >> Der frühe Vogel fängt den Wurm. Hier gelangen Sie
> >> zum neuen Yahoo! Mail: http://mail.yahoo.de
> >>
> >>
> >
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> 
> >> For additional commands, e-mail:
> >> 
> >>
> 
=== message truncated ===

	

	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de