OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to create DocBook XML w/ latest OpenOffice 2.0.3
Goto page 1, 2  Next
 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 1:51 am    Post subject: How to create DocBook XML w/ latest OpenOffice 2.0.3 Reply with quote

Hi,

can somone explain, how I can create a DocBook XML Question 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 Sad

In the meantime I doubt that it's possible to convert .odt to DocBook XML.

Regards,
Darya
Back to top
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 2:09 am    Post subject: Reply with quote

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 Idea to those who are demanding an answer Shocked

Or am I in the wrong forum Rolling Eyes ?

Thanks a lot,
Darya
Back to top
View user's profile Send private message
acknak
Moderator
Moderator


Joined: 13 Aug 2004
Posts: 4295
Location: ~ 40°N,75°W

PostPosted: Thu Aug 10, 2006 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 2:16 am    Post subject: Reply with quote

Unfortunately I've Windows XP Sad
Back to top
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 2:46 am    Post subject: Reply with quote

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 Question

Regards,
Darya
Back to top
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 3:43 am    Post subject: Reply with quote

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 Sad

So neither Import XSLT nor Export XSLT work Confused
Back to top
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Thu Aug 10, 2006 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Thu Aug 10, 2006 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 6:59 am    Post subject: Use Standard Reply with quote

Hi,

I found out something very strange Shocked . 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 Rolling Eyes

Regards,
Darya
Back to top
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Thu Aug 10, 2006 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 8:13 am    Post subject: What about Graphics? Reply with quote

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 Question Or do you know where I can study more on this issue Question

Thanks,
Darya
Back to top
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Thu Aug 10, 2006 9:26 am    Post subject: Reply with quote

I found:
Quote:
Ein kleiner Stolperstein sind Grafiken. Open Office gibt sie nur dann korrekt als inlinegraphic aus, wenn der Autor beim Einfgen der Grafik die Option Verknpfen ausgewhlt hat. Es ist also wichtig, dass das Bild in einer externen Datei bleibt; eingebettete Grafiken landen in der SXW-Datei. Gleiches gilt auch fr 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
View user's profile Send private message
darya
General User
General User


Joined: 10 Aug 2006
Posts: 24
Location: Germany

PostPosted: Thu Aug 10, 2006 10:41 pm    Post subject: Reply with quote

Hi Robert,

interesting link (seems you know german language Mr. Green ). But I still need to further investigate on that topic.

Thanks,
Darya
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group