Hi all!
What I am trying to achieve with DocbookWiki is:
- Create a new book.
- Edit it. (This works; with minor issues.)
- Download it, primarily in XML, Plain Text or PDF.
In fact, until now I never successfully made it. But I am getting better
at finding out what the problem might be in each step and I thought I'd
share it here so it gets archived and also maybe someone will find this
information useful or be able to come up with some hints.
I am using a version from CVS as of March 29th, 2006. Haven't updates
since then as I am not sure if I should use CVS or SVN.
* Creating a new book
The safest way to start a new book seems to obtain an existing, empty
but syntactically complete docbook document and import it.
I did not manage to start a new book from scratch, neither on the
command line nor through the web interface.
Through the web interface I can create a new book. It seems to be
successful in the first place. The book shows up in any lists, I can put
it on the menu, all fine. Just I cannot edit it.
WebApp Error: Parser::parse_file(): file
'content/books/cache/ppguide/en/./content.html' does not exist.
WebApp Error: Parser::parse_file(): file
'content/books/cache/ppguide/en/./subnodes.html' does not exist.
I had a look if a manual explode might help, but the problem seems to be
that the document which is created through the web interface is
completely empty. (0 bytes)
I did not find anything on the command line which look like a command to
create a new, empty book. So my workaround has been to import an empty
template so far. (I will attach one to this email which worked for me
for your cut & paste. Note this is for a book, not for an article.)
Here is how it worked for me:
- Cut and paste the template to an editor of your choice and save
locally on your machine.
- On the /admin.php goto "Add book".
- Browse for and upload the file in the left "Import" section.
- You may have to refresh the page to make sure your new template file
shows up right under the book_template_en.xml.
- Type a book ID and language into the Book ID field and Lng field in
the top left section of the screen *above* the sentence "Import an
existing XML file".
- Hit the little "Import" button next to your uploaded template.
The book will be created and you can add it into the menu to start
editing it.
(to be continued on the subject of downloading what you edited ...)
In case anyone managed to create a new book using the section titled
"Create a new one" on the admin.php page, please tell me what I might
have gotten wrong.
For completeness: When I try to import the template
"book_template_en.xml" which comes with doc-book, here are the error
messages:
Debug Messages:
Exploding 'delete3' initial_xml/uploaded/book_template_en.xml
warning: failed to load external entity "explode/tmp/GNU-FDL.xml"
explode/tmp/delete3.xml:62: parser error : Failure to process entity GNU-FDL
&GNU-FDL;
^
explode/tmp/delete3.xml:62: parser error : Entity 'GNU-FDL' not defined
&GNU-FDL;
^
unable to parse explode/tmp/delete3.xml
warning: failed to load external entity "explode/tmp/GNU-FDL.xml"
explode/tmp/delete3.xml:62: parser error : Failure to process entity GNU-FDL
&GNU-FDL;
^
explode/tmp/delete3.xml:62: parser error : Entity 'GNU-FDL' not defined
&GNU-FDL;
^
unable to parse explode/tmp/delete3.xml
warning: failed to load external entity "explode/tmp/GNU-FDL.xml"
explode/tmp/delete3.xml:62: parser error : Failure to process entity GNU-FDL
&GNU-FDL;
^
explode/tmp/delete3.xml:62: parser error : Entity 'GNU-FDL' not defined
&GNU-FDL;
^
unable to parse explode/tmp/delete3.xml
chmod: changing permissions of `explode/tmp/': Operation not permitted
Creating svn repository books/svn/delete3/en
Importing into:
file:///var/www/virtual/docbook.rent-a-wiki.com/book-cvs-20060329/content/books/svn/delete3/en/trunk
Committed revision 2.
Checking out to books/xml/delete3/en/
Checking out to workspace/xml/delete3/en/
Creating cache files in books/cache/delete3/en/
warning: failed to load external entity "../books/xml/delete3/en/index.xml"
unable to parse ../books/xml/delete3/en/index.xml
warning: failed to load external entity "../books/xml/delete3/en/index.xml"
unable to parse ../books/xml/delete3/en/index.xml
warning: failed to load external entity "../books/xml/delete3/en/index.xml"
unable to parse ../books/xml/delete3/en/index.xml
Creating cache files in workspace/cache/delete3/en/
warning: failed to load external entity
"../workspace/xml/delete3/en/index.xml"
unable to parse ../workspace/xml/delete3/en/index.xml
warning: failed to load external entity
"../workspace/xml/delete3/en/index.xml"
unable to parse ../workspace/xml/delete3/en/index.xml
warning: failed to load external entity
"../workspace/xml/delete3/en/index.xml"
unable to parse ../workspace/xml/delete3/en/index.xml
Creating files state.txt in workspace/xml/delete3/en/
warning: failed to load external entity "initial_xml/uploaded/GNU-FDL.xml"
initial_xml/uploaded/book_template_en.xml:62: parser error : Failure to
process entity GNU-FDL
&GNU-FDL;
^
initial_xml/uploaded/book_template_en.xml:62: parser error : Entity
'GNU-FDL' not defined
&GNU-FDL;
^
unable to parse initial_xml/uploaded/book_template_en.xml
----------
Regards,
Torsten
---- BEGIN My empty template ----
<?xml version="1.0" encoding="UTF-8" ?>
<book>
<bookinfo>
<title>Hello, world</title>
</bookinfo>
<chapter>
<title>Hello, world</title>
<para>This is my first DocBook file.</para>
</chapter>
</book>
---- END My empty template ----
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Doc-book-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/doc-book-users