Thanks Jay and Andreas.

What if I keep getting errors even though I have the minimalistic of FO?

fo:root is missing child elements. 
Required Content Model: (layout-master-set, declarations?,
bookmark-tree?, page-sequence+)

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>

        <fo:layout-master-set>
                <fo:simple-page-master page-width="8.5in"
page-height="11in" master-name="myPages">
                        <fo:region-body margin-right="0mm"
margin-left="0mm" margin-bottom="0mm" margin-top="0mm"/>
                </fo:simple-page-master>
                <fo:simple-page-master page-width="8.5in"
page-height="11in" master-name="inventoryPages">
                        <fo:region-body border="0.5pt solid #000"
margin-right="8mm" margin-left="7mm" margin-bottom="41mm"
margin-top="24mm"/>
                        <fo:region-before display-align="after"
extent="24mm" region-name="header"/>
                        <fo:region-after display-align="before"
extent="41mm" region-name="footer"/>
                </fo:simple-page-master>
        </fo:layout-master-set>

        <fo:page-sequence master-reference="myPages">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block>Body</fo:block>
                </fo:flow>
        </fo:page-sequence>



        <fo:page-sequence master-reference="inventoryPages">
        
                <fo:static-content flow-name="header">
                        <fo:block>Header</fo:block>
                </fo:static-content>
                
                <fo:static-content flow-name="footer">
                        <fo:block>Footer</fo:block>
                </fo:static-content>
                
                <fo:flow flow-name="xsl-region-body">
                        <fo:block>Body</fo:block>
                </fo:flow>
        </fo:page-sequence>
        
</fo:root>

I've gone through this document for the past 30 minutes trying to
identify the problem. Maybe I should address my questions to an XSL-FO
markup list instead?

Dan

> -----Original Message-----
> From: Jay Bryant [mailto:[EMAIL PROTECTED] 
> Sent: March 3, 2008 1:16 PM
> To: [email protected]
> Subject: Re: fo:simple-page-master is missing child elements
> 
> ? means 0 or 1 (so optional, yes)
> + means 1 or more (required and may repeat)
> * means 0 or more (optional and may repeat)
>   (no mark) means just 1 (required and may not repeat)
> 
> Jay Bryant
> Bryant Communication Services
> http://www.bryantcs.com/
> 
> ----- Original Message -----
> From: "Fournier,Danny [NCR]" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, March 03, 2008 12:08 PM
> Subject: RE: fo:simple-page-master is missing child elements
> 
> 
> Thanks Andreas. Everything worked in 0.20.5 so I assumed that it would
> still work in 0.94.
> 
> What is the suffix appended to the order of the fields? I've 
> seend "?",
> which I assume mean optional. What about "+" ?
> 
> DF 
> 
> > -----Original Message-----
> > From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
> > Sent: March 3, 2008 12:38 PM
> > To: [email protected]
> > Subject: Re: fo:simple-page-master is missing child elements
> > 
> > On Mar 3, 2008, at 18:09, Fournier,Danny [NCR] wrote:
> > 
> > Hi
> > 
> > > Here is the rendered XSL-FO:
> > 
> > <snip />
> > 
> > >
> > > I get the following message:
> > >
> > > javax.xml.transform.TransformerException:
> > > org.apache.fop.fo.ValidationException: Error(Unknown location):
> > > fo:simple-page-master is missing child elements.
> > > Required Content Model: (region-body, region-before?, 
> > region-after?, 
> > > region-start?, region-end?)
> > >
> > > In both cases I have a region-body child specified.
> > 
> > Yes, but in the second case, the regions are not specified in 
> > the prescribed order (see the error message).
> > 
> > >
> > > I vaguely remember something about the type of validation (loose,
> > > strict?) in the setup of the FOP call - could this be my answer?
> > 
> > No, the best way to avoid the error is move the region-body to the  
> > first position.
> > 
> > 
> > HTH!
> > 
> > Andreas
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to