OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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?


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
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > docbook-apps-unsubscribe@lists.oasis-open.org
> > > For additional commands, e-mail:
> > docbook-apps-help@lists.oasis-open.org
> > >
> > >
> > > 
> > 
> > 
> > 
> 
> 
> 
> 	
> 
> 	
> 		
>
___________________________________________________________
> 
> Der frühe Vogel fängt den Wurm. Hier gelangen Sie
> zum neuen Yahoo! Mail: http://mail.yahoo.de
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help@lists.oasis-open.org
> 
> 



	

	
		
___________________________________________________________ 
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]