[xep-support] Purple odd-right

Mark Jackson mark.jackson at pyp.us
Thu Aug 8 22:47:50 PDT 2002


Hi -- I have a requirement to change the color of the entire 
region-end for different sections (page-sequences)
of my document.  The text in this region should be rotated 
270 (as in the headers.fo example).  Unlike headers.fo, 
different page-sequences need different region-end 
background colors. 

One obvious (but ugly) solution would be to create page
Masters with a different background color for each
Region-end.  (The color is the only thing that is 
different.)

The other solution that I have tried is to create a 
Block-container within the static-content area.  For 
example, the following works to change the background
color, but the text is no longer rotated:


<fo:static-content flow-name="odd-right">

   <fo:block-container position="absolute" 
    background-color="purple" width="1.2in" 
    height="11in" top="0cm" right="0cm">
  <fo:block text-align="center" font-weight="bold">Right sidebar 
of page<fo:page-number/></fo:block>

   </fo:block-container>      	
</fo:static-content>

BTW, if you set reference-orientation="270" on the block-container,
it rotates the entire block
(not the containing text).

So, I tried a relative block:

<fo:block-container position="relative" 
background-color="purple" width="11in" 
height="1.2in" top="0cm" right="0cm">

However, now the text is rotated, but the 
Height is ignored (the background is the 
height of the contained text).

I also tried combinations of the above.  This seems like it
Should be straight-forward.  Perhaps I am missing something
obvious.  

I'm using the latest XEP eval.  

Regards,
Mark Jackson
mark.jackson at pyp.us	

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list