List Info

Thread: How to rotate images?




How to rotate images?
user name
2006-10-25 13:33:02
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 <bobssagehill.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
> bobssagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Darya Said-Akbari"
<darya_akbariyahoo.com>
> To: <docbook-appslists.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-unsubscribelists.oasis-open.org
> > For additional commands, e-mail:
> docbook-apps-helplists.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-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

How to rotate images? - DocBook XSL or FOP problem?
user name
2006-10-25 16:22:07
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_akbariyahoo.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 <bobssagehill.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
> > bobssagehill.net
> > 
> > 
> > ----- Original Message ----- 
> > From: "Darya Said-Akbari"
<darya_akbariyahoo.com>
> > To: <docbook-appslists.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-unsubscribelists.oasis-open.org
> > > For additional commands, e-mail:
> > docbook-apps-helplists.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-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.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-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

How to rotate images? - DocBook XSL or FOP problem?
user name
2006-10-25 16:22:07
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_akbariyahoo.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 <bobssagehill.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
> > bobssagehill.net
> > 
> > 
> > ----- Original Message ----- 
> > From: "Darya Said-Akbari"
<darya_akbariyahoo.com>
> > To: <docbook-appslists.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-unsubscribelists.oasis-open.org
> > > For additional commands, e-mail:
> > docbook-apps-helplists.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-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.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-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )