xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Sancho" <pascal.san...@takoma.fr>
Subject RE: region-before falls between region-start and region-end
Date Tue, 14 Feb 2006 08:40:35 GMT
Hi Karl,

As describe in [1], precedence attribute applies only to fo:region-before and fo:region-after.
You don't need to specify it on fo:region-start neither fo:region-end.
Initial value is false.

I think that is not implemented on FOP 0.20.5.

[1] http://www.w3.org/TR/xsl/slice7.html#precedence
 
Pascal

> -----Message d'origine-----
> De : Karl Roberts [mailto:Karl.Roberts@macquarie.com] 
> Envoyé : mardi 14 février 2006 03:33
> 
> Hi All I found a mechanism to make it work like I expected...
> I had to set the prescedence to true on region-before and 
> region-after Eg
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
> xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes"
> xmlns:fn="http://www.w3.org/2004/07/xpath-functions"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<fo:layout-master-set>
> 		<fo:simple-page-master margin-right="1cm"
> margin-left="1cm" margin-bottom="1cm" margin-top="1cm" 
> page-width="21cm"
> page-height="29.7cm" master-name="mastertest">
> 			<fo:region-body margin-right="2cm"
> margin-left="2cm" margin-bottom="2.5cm" margin-top="4cm"
> region-name="xsl-region-body"/>
> 			<fo:region-before precedence="true"
> background-color="red" extent="3.5cm" 
> region-name="xsl-region-before"/>
> 			<fo:region-after precedence="true"
> background-color="yellow" extent="2cm" 
> region-name="xsl-region-after"/>
> 			<fo:region-start precedence="false"
> background-color="green" extent="1.5cm" 
> region-name="xsl-region-start"/>
> 			<fo:region-end precedence="false"
> background-color="blue" extent="1.5cm" region-name="xsl-region-end"/>
> 		</fo:simple-page-master>
> 	</fo:layout-master-set>
> 	<fo:page-sequence master-reference="mastertest">
> 		<fo:flow flow-name="xsl-region-body">
> 			<fo:block>					
> 						content stuff
> 					</fo:block>
> 		</fo:flow>
> 	</fo:page-sequence>
> </fo:root>


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


Mime
View raw message