This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] FOP or stylesheet bug?
- From: Bob Stayton <bobs at sco dot com>
- To: "Sanders, M." <MSA at ballastham dot com>
- Cc: DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 5 Nov 2003 01:40:41 -0800
- Subject: Re: [docbook-apps] FOP or stylesheet bug?
- References: <2C638A837F8C18499710D0E61D2604D9EFD7C6@ZIRCONIUM.ballastham.com>
Well, your example resolved XML file isn't valid.
It has chapter elements inside an article,
which does not conform to the DTD. Check
your xmllint syntax:
$ xmllint --noout --xinclude --postvalid schippers.xml
[chapters in article error]
I'm using:
$ xmllint -version
xmllint: using libxml version 20602
compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Schemas
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
On Wed, Nov 05, 2003 at 09:44:50AM +0100, Sanders, M. wrote:
> Bob,
>
> I checked the xml file with xmllint, valid. Checked the fo file with the
> renderx fo.dtd in Morphon, similar error as FOP so I think it is a
> stylsheet issue.
>
> I filed a bug under #836335
>
> Maarten
>
> > -----Original Message-----
> > From: Bob Stayton [mailto:bobs@sco.com]
> > Sent: Tuesday, November 04, 2003 5:34 PM
> > To: Sanders, M.
> > Cc: DOCBOOK-APPS
> > Subject: Re: [docbook-apps] FOP or stylesheet bug?
> >
> >
> > On Tue, Nov 04, 2003 at 04:21:27PM +0100, Sanders, M. wrote:
> > > Hello All,
> > >
> > > I have a nice document setup using xincludes and profiling.
> > For some
> > > reason I cannot produce pdf with fop bu I can produce html directly:
> > >
> > > xmllint --xinclude test.xml > resolved.xml
> > >
> > > xsltproc --output test.fo --stringparam profile.os "linux"
> > > /usr/share/sgml/docbook/docbook-xsl-1.62.4/fo/profile-docbook.xsl
> > > resolved.xml
> > > Making portrait pages on A4 paper (210mmx297mm)
> > > --produces test.fo--
> > >
> > > xsltproc --output test.html --stringparam profile.os "linux"
> > > /usr/share/sgml/docbook/docbook-xsl-1.62.4/html/profile-docbook.xsl
> > > resolved.xml
> > > --produces a fine test.html--
> > >
> > > fop -fo test.fo -pdf test.pdf
> > > [ERROR] file:/home/maarten/test.fo:2:38276 page-sequence
> > must be child
> > > of root, not fo:flow
> > >
> > > I have seen this error in the postings of 2001, then it was a
> > > stylesheet bug. Anyone a hint?
> >
> > The error message indicates a messed up FO file.
> > Can you use xmllint to confirm that the input file
> > is valid docbook? If so, it probably is a stylesheet bug.
> > Could you file a bug report on SourceForge, and attach an
> > input file and your FO output file?
> >
> > --
> >
> > Bob Stayton 400 Encinal Street
> > Publications Architect Santa Cruz, CA 95060
> > Technical Publications voice: (831) 427-7796
> > The SCO Group fax: (831) 429-1887
> > email: bobs@sco.com
> >
> >
>
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.