This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] Re: Converting Docbook XML to PDF with FOP


Hi,

On Sunday 10 April 2005 13:50, Ben Branders wrote:
> Thomas Schraitle (10-04-05 13:09)
>
> > Your file glossary.xml contains appendix instead of glossary. If I
> > change it to glossary and validate it separatly it works for me.
>
> Ok, I changed it and it seems to validate. When I run FOP now, I get:
> [Fatal Error] pandion.fo:8:3: Content is not allowed in prolog.
> [ERROR] Content is not allowed in prolog.
>
> Looks like the same error... :?

Ok, I had a closer look at your files and found some validation errors:

1. bookinfo.xml:
othercredit can't contain any author elements. The content modell is:

othercredit ::=
((personname|
  (honorific|firstname|surname|lineage|othername|affiliation|
   authorblurb|contrib)+),
 (personblurb|email|address)*)

You must put each author's firstname and surname inside an othercredit 
without any author like this:

 <othercredit>
   <firstname>Sebastiaan</firstname>
   <surname>Deckers</surname>
 </othercredit>
 <othercredit>
   <firstname>Dries</firstname>
   <surname>Staelens</surname>
 </othercredit>

2. basics.xml
You have an info element. There is no info element for DocBook V4.x. Typo?

If I correct these errors, the complete document is valid. I would 
recommend that you fix these errors first before you apply any 
stylesheets. :) The stylesheets operate on valid XML input; anything else 
gives unexpected results.

HTH.

Tom

-- 
Thomas Schraitle <tom_schr@web.de>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]