Re: more FO problems

At 01/07/06 13:35 +0100, Kerin Cosford wrote:
>When I try and process this FO info. (just a snippet) :
>
>             <fo:simple-page-master master-name="all-pages"
>...
>                 margin-right="0.5cm">
>                 <!--<fo:region-before extent="1cm"/>-->
>             <fo:region-body
>                 margin-top="1.1cm" />
>             </fo:simple-page-master>
>...
>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?)"

Yup!

>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?

The order ... can you see that the content model requires the body to be 
first and the others after?  You were trying to define the before first and 
the body second.

I hope this helps.

..................... Ken


--
G. Ken Holman                      mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:  Practical Transformation Using XSLT and XPath ISBN 1-894049-06-3
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:      2001-08-12,08-13,09-19,10-01,
-                                               10-04,10-22,10-29,02-02

Training Blitz: 3-days XSLT/XPath, 2-days XSLFO in Ottawa 2001-10-01/05

Received on Friday, 6 July 2001 08:40:36 UTC