[Solved] Beginning with AOO, how to save as docbook

Discuss the word processor

[Solved] Beginning with AOO, how to save as docbook

Postby tay » Thu May 03, 2018 10:37 am

hello,
i'm starting with with OpenOffice,
I have a large number of DOCX files that i'm trying to convert to docbook.
when i open the file in OO and try to save it, i don't see the save as : DocBook (xml)
there's only save as Microsoft Word 2003 xml.
I would really apreciate your help.
Thanks
Last edited by robleyd on Fri May 04, 2018 9:17 am, edited 2 times in total.
Reason: Add green tick [robleyd, Moderator]
OpenOffice 4.1.5 on Windows 7
tay
 
Posts: 11
Joined: Thu May 03, 2018 10:28 am

Re: beginning with OO, how to save as docbook

Postby robleyd » Thu May 03, 2018 11:37 am

It may be that option isn't available in earlier versions of AOO - it certainly is in version 4.1.5. You might consider upgrading to a current version.
Attachments
docbook.png
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3057
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: beginning with OO, how to save as docbook

Postby Zizi64 » Thu May 03, 2018 11:47 am

And it available in the LibreOffice. I checked it in my LO 4.4.7 an the LO 6.0.3 versions.

DocBook_LO603.png


I never tried than file format, therefore I do not know if the conversion works well or not.
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.3.3; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8519
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 1:07 pm

I don't have the DocBook option on AOO 4.1.5 Windows 7 even after downloading the DocBook template from Getting Started With DocBook on OpenOffice.

Clipboard01.png

If you (robleyd) have it, could it be as an Add-on? I am on 4.1.5 Rev 1817496 and when I check for updates I am told I am fully up to data.
Attachments
Clipboard02.png
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby Zizi64 » Thu May 03, 2018 1:17 pm

I don't have the DocBook option on AOO 4.1.5 Windows 7 even after downloading the DocBook template from Getting Started With DocBook on OpenOffice.

If you (robleyd) have it, could it be as an Add-on? I am on 4.1.5 Rev 1817496 and when I check for updates I am told I am fully up to data.

The LibreOffice contains this feature by default.
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.3.3; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8519
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: beginning with OO, how to save as docbook

Postby RoryOF » Thu May 03, 2018 1:20 pm

I have it on out of the box 4.1.5 on Windows XP, John.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 1:23 pm

Zizi64

That LO has it is not the point.

robleyed has it with AOO 4.1.5 on Linux. I am fully up to date with AOO 4.1.5 on Windows but I do not have it. I have a vanilla AOO install so why don't I have it?

The original poster may be back-level or may have the same problem I appear to have.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 1:24 pm

RoryOF wrote:I have it on out of the box 4.1.5 on Windows XP, John.

As Alice said, curious and curiouser! I definitely ain't got it!
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby RoryOF » Thu May 03, 2018 1:31 pm

I have just checked - I'm using Windows Save dialogs, not OO dialogs. On that machine I have only English dictionaries and Language Tool installed.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 1:43 pm

Rory

I completely uninstalled AOO and renamed my old profile. I downloaded AOO from the download site and installed it as a vanilla install where I selected Install everything. I started Writer (not AOO itself) and was asked to fill in my name which I did. I now have a completely standard AOO installation.

I now go File > Save As..., and I get this ... which does not have DocBook.

Clipboard01.gif

Two things.

1 You say you use the Windows dialogues not the AOO dialogues. Can you explain further - please remember that I am a bear of very little brain ...

2 What do you as options - am I missing more?

This is what I have installed.

Clipboard06.png
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby tay » Thu May 03, 2018 1:45 pm

robleyd wrote:It may be that option isn't available in earlier versions of AOO - it certainly is in version 4.1.5. You might consider upgrading to a current version.



I have version 4.1.5, and i dont see save as docbook.xml !
is it installed indvidually ?
OpenOffice 4.1.5 on Windows 7
tay
 
Posts: 11
Joined: Thu May 03, 2018 10:28 am

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 1:49 pm

John_Ha wrote:1 You say you use the Windows dialogues not the AOO dialogues. Can you explain further - please remember that I am a bear of very little brain ...

Got it. When I go Tools > Options > OpenOffice > General ..., and tick Use OpenOffice dialogue boxes it makes no difference.

I searched Help with DocBook and eventually came across

XML Filter Settings

Some filters are only available as optional components during the OpenOffice installation. To install an optional filter, run the OpenOffice Setup application, select "Modify", and then select the filter that you want in the list of modules.


I then went Tools > XML Filter settings and got this:

Clipboard01.gif

I will continue digging.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby RoryOF » Thu May 03, 2018 1:56 pm

My version is build 1817496, as yours is.

Windows/OpenOffice file dialogs can be selected in /Tools /Options /OpenOffice : General.

I can't see anything else relevant in the Options settings.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 2:08 pm

I did as Help suggested and Modified the install - I added some filters but it made no change even after rebooting.

What do you see when you go Tools > XML Filter settings...? I get this:

Clipboard01.gif

Do you know where the XML filters are located? I cannot find them in the Profile. When I try editing MS Word 2003 XML I get taken to C:\Program Files (x86)\OpenOffice 4\share\xslt\export\wordml\ooo2wordml.xsl.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 2:21 pm

I am beginning to think it is a problem with Windows 7. Rory's XP is OK.

Does anyone have AOO 4.1.5 on Windows Vista, W8 or W10 - can you please test it?
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby RoryOF » Thu May 03, 2018 2:25 pm

XML filters.PNG
Here is my XML filters
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 2:45 pm

Rory

Thanks. I have just done a vanilla install of AOO 4.1.5 on a W10 machine and it is exactly the same as my W7 machine - no DocBook and none of those filters.

When you Edit ..., the DocBook XML which file does it point to? And when you Edit ..., the MS Word 2003 XML which file does it point to?
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby Zizi64 » Thu May 03, 2018 3:04 pm

My AOO 4.1.2 version has the DocBook option by default (without any extra extensions), but my AOO 4.1.5 (winPenpack) portable version has not.

DocBook_AOO412.png


AOO412_extensions.png
AOO412_extensions.png (11.35 KiB) Viewed 3366 times
Last edited by Zizi64 on Thu May 03, 2018 6:54 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.3.3; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8519
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: beginning with OO, how to save as docbook

Postby robleyd » Thu May 03, 2018 3:07 pm

If you (robleyd) have it, could it be as an Add-on? I am on 4.1.5 Rev 1817496 and when I check for updates I am told I am fully up to data.


My version of AOO is exactly the same as yours, except for Linux. I have no extensions related to it, and the Linux install doesn't have any options to install or not install some options of AOO as the Windows install does; it is all or nothing. I'll start my Win 7 virtual machine and see what is in there.

~~~ time passes ~~~

Aha - using 4.1.4 and a vanilla install I found no docbook option; however going back and re-running the install and adding XSLT sample filters from the Optional Components gives the option to save as docbook.
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3057
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: beginning with OO, how to save as docbook

Postby tay » Thu May 03, 2018 3:15 pm

robleyd wrote:
If you (robleyd) have it, could it be as an Add-on? I am on 4.1.5 Rev 1817496 and when I check for updates I am told I am fully up to data.


My version of AOO is exactly the same as yours, except for Linux. I have no extensions related to it, and the Linux install doesn't have any options to install or not install some options of AOO as the Windows install does; it is all or nothing. I'll start my Win 7 virtual machine and see what is in there.

~~~ time passes ~~~

Aha - using 4.1.4 and a vanilla install I found no docbook option; however going back and re-running the install and adding XSLT sample filters from the Optional Components gives the option to save as docbook.



Could you please share with us in details the method to add the option save as docbook ? with screenshots if possible
thank you
OpenOffice 4.1.5 on Windows 7
tay
 
Posts: 11
Joined: Thu May 03, 2018 10:28 am

Re: beginning with OO, how to save as docbook

Postby RoryOF » Thu May 03, 2018 4:39 pm

John_Ha wrote:When you Edit ..., the DocBook XML which file does it point to? And when you Edit ..., the MS Word 2003 XML which file does it point to?


Docbooks fles
C:\Program Files\OpenOffice 4\share\xslt\docbook\sofftodocbookheadings.xsl
C:\Program Files\OpenOffice 4\share\xslt\docbook\docbooktosoffheadings.xsl
C:\Program Files\OpenOffice 4\share\xslt\docbook\DocBookTemplate.stw

Word 2003 XML files
C:\Program Files\OpenOffice 4\share\xslt\export\wordml\ooo2wordml.xsl
C:\Program Files\OpenOffice 4\share\xslt\import\wordml\wordml2ooo.xsl

Did you remember to check for Quickstarter running afteryou selected filters?
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 6:32 pm

RoryOF wrote:Docbooks fles
C:\Program Files\OpenOffice 4\share\xslt\docbook\sofftodocbookheadings.xsl
C:\Program Files\OpenOffice 4\share\xslt\docbook\docbooktosoffheadings.xsl
C:\Program Files\OpenOffice 4\share\xslt\docbook\DocBookTemplate.stw

Rory

They are not present in my W7 installation.

Clipboard01.gif

I do have the three files you mention in the AOO Installation files so I guess that there is a bug in the Windows installer and it does not install them. I created a folder C:\Program Files (x86)\OpenOffice 4\share\xslt\docbook\ and copied the three files into it but it did not make any difference. I think they need to be "installed" via the New dialogue in Tools > XML Filter Settings ...., but I have no idea how to do it.

I will raise a bug report.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 7:13 pm

AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 7:31 pm

robleyd wrote:Aha - using 4.1.4 and a vanilla install I found no docbook option; however going back and re-running the install and adding XSLT sample filters from the Optional Components gives the option to save as docbook.

Bingo! I must have missed that the first time I tried. When I add them it I now see DocBook.

I guess development forgot to set the box to Ticked in the AOO Windows installer.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: beginning with OO, how to save as docbook

Postby John_Ha » Thu May 03, 2018 7:45 pm

tay wrote:hello,
i'm starting with with OpenOffice,
I have a large number of DOCX files that i'm trying to convert to docbook.
when i open the file in OO and try to save it, i don't see the save as : DocBook (xml)
there's only save as Microsoft Word 2003 xml.
I would really apreciate your help.
Thanks

tay

The solution to your problem is

1. Stop AOO. If you still have the folder called OpenOffice 4.1.5 (en-GB) Installation Files left over from when you installed 4.1.5 jump to step 3. IF not download AOO from http://www.openoffice.org/download/index.html

2. Install it. During the install do you see the screen shown at Step 3? If you do see it, select Modify and jump to Step 4.

If you did not see that screen, continue and you will eventually be left with a folder called OpenOffice 4.1.5 (en-GB) Installation Files.

3. In that folder you will see a file called setup.exe. Double click it. Follow the instructions till you get to the screen below where you select Modify.

Clipboard01.gif

4. This takes you to the Custom Setup screen. Click the [+] next to Optional Components

Clipboard03.gif

5. You need to remove the X. Click the arrow next to XSLT Sample Filters and choose This feature and all sub-features will be installed on the local hard drive.

Clipboard02.gif

6. Start AOO and all will be fixed.

See Getting Started With DocBook on OpenOffice.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Beginning with AOO, how to save as docbook

Postby tay » Fri May 04, 2018 8:44 am

John_Ha Thank you so much !
The problem is solved thanks to you ! :)
OpenOffice 4.1.5 on Windows 7
tay
 
Posts: 11
Joined: Thu May 03, 2018 10:28 am

Re: [Solved] Beginning with AOO, how to save as docbook

Postby Zizi64 » Fri May 04, 2018 9:18 am

...and unfortunately there is not such installation wizard for the winPenPack portable version...
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.3.3; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8519
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Beginning with AOO, how to save as docbook

Postby John_Ha » Sat May 05, 2018 6:20 pm

Zizi64 wrote:...and unfortunately there is not such installation wizard for the winPenPack portable version...

Zizi64

You have the three files so you should be able to install it with Tools > XML Filter settings > New ..., but I don't know how. Help may give some clues, as should examining with those which are already installed.

This is what I see when I select DocBook and edit it. It may therefore just be a case of adding the files, and then putting them in these three fields.
Attachments
Clipboard01.gif
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Beginning with AOO, how to save as docbook

Postby John_Ha » Sun May 06, 2018 11:49 am

The bug report was accepted and DocBooks will be now be included by default in the next AOO update.

Incidentally, I searched the forum with Docbook and there are very few relevant posts.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6938
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Writer

Who is online

Users browsing this forum: No registered users and 28 guests