»User: »Password:   Remember Me? 
>e-novative> Support and Discussion Forums / >e-novative> DocBook Environment (eDE) / DocBook XML Questions / How to generate PDF from XML ?
Posted:  24 Feb 2007 12:23
Recently, I installed eDE (it's on c:\docbook)
I create a test.xml in repository and run docbook_pdf test1.xml

It said :
eDE: document test1.xml does not exist

What is the proper way ?

Posted:  05 Mar 2007 16:55
Hi,
you must write filename without extension. Naturally if your xml file is test.xml must be in the folder c:\docbook\repository\test\

for generating pdf file type:

docbook_pdf test


bye
Posted:  31 Mar 2007 16:03
Also, if you have created a document called test, you must run command docbook_pdf test, not docbook_pdf test1.
Posted:  17 Apr 2007 05:59
I tried another way, and it still fails. Here's how it goes anyway :

1. Create an article called "BlahBlah"
Code:

docbook_create article BlahBlah


2. Now in the C:\docbook\repository\BlahBlah, there is BlahBlah.xml, entities.xml, and a "figure" directory.
Try to build a PDF
Code:

docbook_pdf BlahBlah


3. It spits out errors like these :

Quote:

C:\docbook\repository\BlahBlah>docbook_pdf BlahBlah



eDE: creating BlahBlah.pdf in c:\docbook\output\BlahBlah\pdf\:



eDE: validating BlahBlah:
BlahBlah.xml:30: warning: failed to load external entity "file:/c:/docbook/inclu
de/global.xml"
    %global.entities;
                     ^
Entity: line 1:
%global.entities;
                  ^
BlahBlah.xml:35: warning: failed to load external entity "file:/c:/docbook/dtd/d
ocbookx.dtd"
>
^
BlahBlah.xml:37: element article: validity error : No declaration for attribute
lang of element article
<article lang="en">
                  ^
BlahBlah.xml:41: element title: validity error : No declaration for element titl
e
   <title>Article</title>
                         ^
BlahBlah.xml:42: element pubdate: validity error : No declaration for element pu
bdate
    <pubdate>2002</pubdate>
                           ^
BlahBlah.xml:44: element year: validity error : No declaration for element year
      <year>2002</year>
                       ^
BlahBlah.xml:45: element holder: validity error : No declaration for element hol
der
      <holder>e-novative GmbH</holder>
                                      ^
BlahBlah.xml:46: element copyright: validity error : No declaration for element
copyright
    </copyright>
                ^
BlahBlah.xml:48: element articleinfo: validity error : No declaration for elemen
t articleinfo
  </articleinfo>
                ^
BlahBlah.xml:51: element title: validity error : No declaration for element titl
e
  <title>Section 1</title>
                          ^
BlahBlah.xml:54: element title: validity error : No declaration for element titl
e
    <title>This is a section 2</title>
                                      ^
BlahBlah.xml:58: parser error : Entity 'global_entity' not defined
    Also, you can include a &global_entity; or a &local_entity;.
                                           ^
BlahBlah.xml:59: element para: validity error : No declaration for element para
    </para>
           ^
BlahBlah.xml:61: element sect2: validity error : No declaration for element sect
2
  </sect2>
          ^
BlahBlah.xml:63: element sect1: validity error : No declaration for element sect
1
</sect1>
        ^
BlahBlah.xml:65: element article: validity error : No declaration for element ar
ticle
</article>
          ^
warning: failed to load external entity "file:/c:/docbook/dtd/docbookx.dtd"
validity error : Could not load the external subset "file:/c:/docbook/dtd/docboo
kx.dtd"
Document BlahBlah.xml does not validate
eDE: XSL validation failed



What's wrong ? I haven't modified any file yet
Posted:  17 Apr 2007 18:15
Have you checked that you have the files the scrits reports it's missing?