| View previous topic :: View next topic |
| Author |
Message |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 1:51 am Post subject: How to create DocBook XML w/ latest OpenOffice 2.0.3 |
|
|
Hi,
can somone explain, how I can create a DocBook XML I use OpenOffice Writer and tried a lot to convert my text into DocBook but with the current version 2.0.3 I have no luck.
The explanation at http://xml.openoffice.org/xmerge/docbook/ doesn't work for me
In the meantime I doubt that it's possible to convert .odt to DocBook XML.
Regards,
Darya |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 2:09 am Post subject: |
|
|
I'm not sure but it seems, after reviewing similar questions here, that there is no answer coming out from this forum even after months of inquiry.
So, please let's take this thread as a chance and bring light to those who are demanding an answer
Or am I in the wrong forum ?
Thanks a lot,
Darya |
|
| Back to top |
|
 |
acknak Moderator


Joined: 13 Aug 2004 Posts: 4295 Location: ~ 40°N,75°W
|
Posted: Thu Aug 10, 2006 2:14 am Post subject: |
|
|
Recent Fedora Linux packages (I have 2.0.2-5.17.2), include an xslt ODT to Docbook translator. It appears as "Docbook" under the file types button in the "Save As" dialog from OOo.
It works, as far as creating an output file, but I'm not enough of a Docbook whiz to give any further report.
The actual package is called: openoffice.org-xsltfilter-2.0.2-5.17.2 |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 2:16 am Post subject: |
|
|
Unfortunately I've Windows XP  |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 2:46 am Post subject: |
|
|
Correct me, if I'm wrong.
- (A) For OpenOffice 2.0.3, it seems that one can only convert files, with the old OOo 1 sxw format, to DocBook.
- (B) There is no built-in DocBook(.xml) filter in OpenOffice 2.0.3
- (C) One has to set DocBook(.xml) import/export in OpenOffice 2.0.3 prior to conduct Save As DocBook
Anyone who can confirm above
Regards,
Darya |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 3:43 am Post subject: |
|
|
Is it possible that the XSLT's provided in http://xml.openoffice.org/xmerge/docbook/ is crap? I have also the problem when importing a DocBook XML (which I created through Save AS .sxw) that I fail
So neither Import XSLT nor Export XSLT work  |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Thu Aug 10, 2006 6:22 am Post subject: |
|
|
I have no real experience with DocBook but I copied the file at:
www.belgeler.org/elkitabi/xmldoc-howto_appendix.html
into a text editor and saved it as text.xml and could open it as a DocBook file in OpenOffice just from File>Open. I could edit it, add to it and change the styles, save it and re-open it correctly.
I created a document in Writer just using two heading styles and text body or default styles and saved it as DocBook .xml. Re-opening it I found a heading style was different but could reset it by modifying the style. How good would one expect the DocBook export from Writer to be?
If you want to look more closely at the "action" go to: Tools>XML Filter Settings...>Test XSLTs... |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 6:37 am Post subject: |
|
|
Hi Robert,
did you use the latest 2.0.3 version? And did you set 'Article' and 'Chapter' filter by hand? So what next step after installing 2.0.3 should I conduct? Setting the XML filters for 'Article' and 'Chapter'?
Thanks for the DocBook XML example file. I'll install 2.0.3 again and give it a new try. I'll use this one for testing.
Regards,
Darya |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Thu Aug 10, 2006 6:53 am Post subject: |
|
|
| darya wrote: | | did you use the latest 2.0.3 version? | Yes, I'm currently using 2.0.3
| darya wrote: | | And did you set 'Article' and 'Chapter' filter by hand? | The file I tested did not have a "chapter" section but, no, I did not need to set "Article" by hand.
| darya wrote: | | So what next step after installing 2.0.3 should I conduct? | You could try to import the file I referenced (or something similar) straight out
Going to:
Tools>XML Filter Settings...>Edit>Transformation
I note the only export filter I have is sofftodocbookheadings.xsl. If this does not do what you want it to, I would guess downloading and trying sofftodocbookheadings_article.xsl or sofftodocbookheadings_chapter.xsl is what I would try.
Last edited by Robert Tucker on Thu Aug 10, 2006 7:02 am; edited 1 time in total |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 6:59 am Post subject: Use Standard |
|
|
Hi,
I found out something very strange . It depends on the installation whether you go standard or custom. I reinstalled 2.0.3, this time using standard installation, and now I also have the built-in DocBook file type.
I hadn't this when I selected custom in my first installation of 2.0.3. I'll give it a new try
Regards,
Darya |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 7:20 am Post subject: |
|
|
Hi Robert,
with the new installation I could load the text.xml with File -> Open -> file type: DocBook and it looks good. I've still the XML filters DocBook (Chapter) and DocBook (Article) from my previous try, now parallel to the built-in DocBook filter. Shall I remove those and live with the built-in DocBook filter?
Regards,
Darya |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Thu Aug 10, 2006 7:46 am Post subject: |
|
|
The one you have at:
Tools>XML Filter Settings...>Edit>Transformation>XSLT for export
is doubtless the one it will run with. I don't see any harm in leaving others where they are or browsing to them and trying them out. |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 8:13 am Post subject: What about Graphics? |
|
|
When I load a MS Word document with graphics in it and do Save As DocBook I loose all the graphics in the result DocBook XML file.
Is there a way to tackle this problem Or do you know where I can study more on this issue
Thanks,
Darya |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Thu Aug 10, 2006 9:26 am Post subject: |
|
|
I found:
| Quote: | | Ein kleiner Stolperstein sind Grafiken. Open Office gibt sie nur dann korrekt als »inlinegraphic« aus, wenn der Autor beim Einfügen der Grafik die Option »Verknüpfen« ausgewählt hat. Es ist also wichtig, dass das Bild in einer externen Datei bleibt; eingebettete Grafiken landen in der SXW-Datei. Gleiches gilt auch für andere Medienobjekte. |
at:
www.linux-magazin.de/Artikel/ausgabe/2003/11/092_docbook-oo/docbook_oo.html
If I check "Link" OpenOffice does write the address of the graphic in. But if I save and then reopen there is an icon but not the image. If I open the xml and put the full address, save and reopen I just get a thumbnail. |
|
| Back to top |
|
 |
darya General User

Joined: 10 Aug 2006 Posts: 24 Location: Germany
|
Posted: Thu Aug 10, 2006 10:41 pm Post subject: |
|
|
Hi Robert,
interesting link (seems you know german language ). But I still need to further investigate on that topic.
Thanks,
Darya |
|
| Back to top |
|
 |
|