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


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-apps] [Error] null when creating pdf with fop


> -----Original Message-----
> From: Roger Weinheimer 
> 
> I'm following the DocBook XSL Definitive Guide. I'm trying a 
> simple input xml file. I cannot create the pdf to save my 
> life. I would appreciate any suggestions.
...
> xml input (myfile.xml):
> <?xml version="1.0"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
> "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
> <book>
> <title>User Guide</title>
> <para>This guide shows you how to use the software.</para>
>   <chapter>
>     <title>pre-foo</title>
>     <para>pre-bar</para>
>   </chapter>
> <!--xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; 
> href="myfile_chapter.xml"/-->
> <!--xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
> href="myfile_chapter.xml"/-->
>   <chapter>
>     <title>post-foo</title>
>     <para>post-bar</para>
>   </chapter>
> </book>


The input file is not valid. A <para> element is not allowed directly after
<title>. Remove the <para> and the PDF should be fine.

/MJ



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