cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gritsenko" <vgritse...@acm.org>
Subject Re: Fop exception
Date Tue, 30 Oct 2001 21:50:51 GMT
No problem - I was sarcastic :)

I used O'Reilly's Java and XML book as well, but when I needed to
xsl-transform xml data to fop document with 3 different layouts - one for
first page, another for all pages in the middle and another for very last
page - I bought one of Wrox books:XSLT - Programmér's Reference  (by Michael
Kay) - then and only than I comprehended the concept of the 'master-page'-
it is the template for the layout of a page. Etc., etc. - that's why you
need to read that book (few chapters, rather).

Viktor




 ----- Original Message -----
From: "Joop van Duin" <javanduin@hotmail.com>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, October 30, 2001 5:00 AM
Subject: Re: Fop exception


> Thanks for your 'advice'
>
> I thought that using example files from O'Reilly would work but obviously
> not all of them work.
>
> >From: "Gritsenko" <vgritsenko@acm.org>
> >Reply-To: cocoon-users@xml.apache.org
> >To: <cocoon-users@xml.apache.org>
> >Subject: Re: Fop exception
> >Date: Mon, 29 Oct 2001 17:26:18 -0500
> >
> >that means it't time to read FO:XSL spec or docs or books.
> >
> >
> >----- Original Message -----
> >From: "Joop van Duin" <javanduin@hotmail.com>
> >To: <cocoon-users@xml.apache.org>
> >Sent: Monday, October 29, 2001 1:29 PM
> >Subject: Help: Fop exception
> >
> >
> > > Hello
> > >
> > > I'm using Apache 1.3.22, JServ 1.1.2, Cocoon 1.8.1
> > >
> > > I get the following FOPException:
> > >
> > > 'master-name' must be uniqueacross page-masters and
> >page-sequence-masters
> > >
> > > What does that mean?
> > >
> > > Thanks
> > > Joop
> > >
> > > P.S : This is the xsl file (origin: O'Reilly, Java and XML)
> > >
> > > <xsl:stylesheet version="1.0"
> > >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >   xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > >
> > >   <xsl:template match="book">
> > >     <xsl:processing-instruction name="cocoon-format">
> > >       type="text/xslfo"
> > >     </xsl:processing-instruction>
> > >     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > >       <fo:layout-master-set>
> > >       <fo:simple-page-master page-master-name="right"
margin-top="75pt"
> > > margin-bottom="25pt" margin-left="100pt" margin-right="50pt">
> > >         <fo:region-body margin-bottom="50pt"/>
> > >         <fo:region-after extent="25pt"/>
> > >       </fo:simple-page-master>
> > >       <fo:simple-page-master page-master-name="left" margin-top="75pt"
> > > margin-bottom="25pt" margin-left="50pt" margin-right="100pt">
> > >         <fo:region-body margin-bottom="50pt"/>
> > >         <fo:region-after extent="25pt"/>
> > >       </fo:simple-page-master>
> > >       </fo:layout-master-set>
> > >
> > >       <fo:page-sequence>
> > >         <fo:sequence-specification>
> > >           <fo:sequence-specifier-alternating page-master-first="right"
> > > page-master-odd="right" page-master-even="left"/>
> > >         </fo:sequence-specification>
> > >
> > >         <fo:static-content flow-name="xsl-after">
> > >           <fo:block text-align-last="centered" font-size="10pt">
> > >             <fo:page-number/>
> > >           </fo:block>
> > >         </fo:static-content>
> > >
> > >         <fo:flow>
> > >           <xsl:apply-templates/>
> > >         </fo:flow>
> > >       </fo:page-sequence>
> > >
> > >     </fo:root>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="cover/title">
> > >     <fo:block font-size="36pt" text-align-last="centered"
> > > space-before.optimum="24pt">
> > >       <xsl:apply-templates/>
> > >     </fo:block>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="author">
> > >     <fo:block font-size="24pt" text-align-last="centered"
> > > space-before.optimum="24pt">
> > >       <xsl:apply-templates/>
> > >     </fo:block>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="chapter">
> > >     <xsl:apply-templates/>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="chapter/title">
> > >     <fo:block font-size="24pt" text-align-last="centered"
> > > space-before.optimum="24pt">
> > >       <xsl:apply-templates/>
> > >     </fo:block>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="paragraph">
> > >     <fo:block font-size="12pt" space-before.optimum="12pt"
> > > text-align="justified">
> > >       <xsl:apply-templates/>
> > >     </fo:block>
> > >   </xsl:template>
> > >
> > >   <xsl:template match="authorComment">
> > >     <fo:block font-size="10pt" font-style="italic" color="blue"
> > > space-before.optimum="12pt" text-align="justified">
> > >       <xsl:apply-templates/>
> > >     </fo:block>
> > >   </xsl:template>
> > > </xsl:stylesheet>
> > >
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > >
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> >To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> >For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message