W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2001

more FO problems

From: Kerin Cosford <Kerin.Cosford@current-drugs.com>
Date: Fri, 6 Jul 2001 13:35:05 +0100
Message-ID: <B630B725359AD411967B00508BFC8E90026C73C7@severin.cursci.co.uk>
To: www-xsl-fo@w3.org
Hi again everyone,

Sorry to keep hitting you up for information, but I'm still learning my way
around FO. And, yes, I've got another problem that I can't work out.

When I try and process this FO info. (just a snippet) :

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
	
	    <fo:simple-page-master master-name="all-pages"
	        page-height="29.7cm"
	        page-width="21cm"
	        margin-top="0.5cm"
	        margin-bottom="0.5cm"
	        margin-left="1cm"
	        margin-right="0.5cm">
		<!--<fo:region-before extent="1cm"/>-->
	    <fo:region-body
	        margin-top="1.1cm" />
	    </fo:simple-page-master>
		
		<fo:page-sequence-master master-name="contents">
			<fo:repeatable-page-master-reference
master-name="all-pages"/>
		</fo:page-sequence-master>
		
	</fo:layout-master-set>
	
		<fo:page-sequence master-name="contents">
		
			<fo:static-content flow-name="xsl-region-before">
			    <fo:block font-family="Helvetica"
font-size="10pt"
			         text-align="center">
			        <xsl:apply-templates
select="fm/bibl/title/p"/>
			    </fo:block>
			 </fo:static-content>
 
			<fo:flow flow-name="xsl-region-body">
				<xsl:apply-templates/>
			</fo:flow>
		</fo:page-sequence>
	
</fo:root>



I get the error "The content of element type 'fo:simple-page-master' must
match
'(fo:region-body,fo:region-before?,fo:region-after?,fo:region-start?,fo:regi
on-end?)"

But, as you can see, fo:simple-page-master contains nothing but
fo:region-body and fo:region-before.

What am I doing wrong? If I take the fo:region-before part out, it all
parses fine. Can anybody see a problem?

Thanks again,

Kerin
Received on Friday, 6 July 2001 08:34:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT