You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ashish Kumar <ng...@iitr.ernet.in> on 2003/11/07 16:05:36 UTC

page border problem in xsl-fo

hi all,
          i have to display page border in pdf document, but putting tags
like this is not working:

  <fo:simple-page-master margin-right="2.0cm" margin-left="2.0cm" 
	margin-bottom="0.5cm" margin-top="0.5cm" page-width="21cm"
	page-height="29cm" master-name="first">
  <fo:region-body margin-bottom="2.0cm" border="thin silver ridge"
	border-color="red" border-style="solid" margin-top="2.0cm"/>
  </fo:simple-page-master>


i have also tried using fo:block-container but that also doesn't work

plz tell me wat can be the problem

ashish 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: page border problem in xsl-fo

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ashish Kumar wrote:
>           i have to display page border in pdf document, but putting tags
> like this is not working:
> 
>   <fo:simple-page-master margin-right="2.0cm" margin-left="2.0cm" 
> 	margin-bottom="0.5cm" margin-top="0.5cm" page-width="21cm"
> 	page-height="29cm" master-name="first">

Borders are not allowed on regions by the spec:
   http://www.w3.org/TR/xsl/slice6.html#fo_region-body
(second paragraph under "areas:")

> plz tell me wat can be the problem
Uh?

Some possible approaches:
- Use a background image in the region-body for the border
- Place appropriately absolutely positioned block-container
  with an appropriate border in the static content rended in
  the non-body regions.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org