View Full Version : DocBook to ePub (using XSL/XSLT?)


me too
07-09-2012, 01:53 AM
now i would like to know how to convert "docbook to epub" ,i had gone through the forum but only little conversation's are made. will you please suggest me with a tutorial or a step by step guidance
please help(me too).........

AlPe
07-09-2012, 04:03 AM
The short answer is: "there is no good, automatic way of converting DocBook to EPUB". You might want to try pandoc or similar programs, though.

me too
07-09-2012, 04:18 AM
right now iam following this tutorial http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/section5.html
i dont understand this high profile tutorial
but i had managed to create a folder named docbook
then created a file named my book.xml
and made few downloads such as docbook xsl stylesheet and xsltproc
but now i am stuck with what to do next
please help (me too)

pdurrant
07-09-2012, 04:34 AM
now i would like to know how to convert "docbook to epub" ,i had gone through the forum but only little conversation's are made. will you please suggest me with a tutorial or a step by step guidance
please help(me too).........

Well, both DocBook (http://www.docbook.org/) and ePub are XML based (although earlier DocBook was SGML).

That means that an automated conversion from DocBook to ePub should be possible, but is way beyond anything I've done. Perhaps the cleanest way would be to do it with XSLT (http://www.w3.org/TR/xslt/), but I know little about it apart from that it exists.

me too
07-09-2012, 04:59 AM
sir,
according to the IBM tutorial i had downloaded docbook-xsl-1.77.1 and combo-2007-10-07.dmg ,will you please confirm me whether i am in the right direction or not ,how to install it and what is the next step?

pdurrant
07-09-2012, 05:21 AM
according to the IBM tutorial i had downloaded docbook-xsl-1.77.1 and combo-2007-10-07.dmg ,will you please confirm me whether i am in the right direction or not ,how to install it and what is the next step?

I really can't help. Apart from knowing the name, I know nothing about XSLT. Good luck. Perhaps someone else will read this and know something about it. I will add XSL(T) to the thread title. (EDIT: Done.)

me too
07-09-2012, 05:47 AM
thank you sir, hope someone will help me

AlPe
07-09-2012, 06:43 AM
right now iam following this tutorial http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/section5.html
i dont understand this high profile tutorial
but i had managed to create a folder named docbook
then created a file named my book.xml
and made few downloads such as docbook xsl stylesheet and xsltproc
but now i am stuck with what to do next
please help (me too)

As said before, you must build your "own" XSLT (usually you tweak it depending on the content of your DocBook input file) and run it against the input file, perhaps in combination with the scripts (or similar) mentioned in that article.

me too
07-09-2012, 06:54 AM
sir,
will you please explain me how to install xsltproc

AlPe
07-09-2012, 07:06 AM
Googling "how to install xsltproc" brings up many useful pages (depending on your operating system, of course):

http://lmgtfy.com/?q=how+to+install+xsltproc

me too
07-09-2012, 07:31 AM
installing the prerequisites on Mac OS X
If not already installed, install automake, autoconf, libtool
$ sudo port install automake autoconf libtool

Note: on Mac OS X, there is a binary named libtool, which is different from what we need. On Mac OS X, we need glibtool, which is exactly what the port install of libtool would bring.

If not already installed, install xsltproc
$ sudo port install xsltproc

If not already installed, install expat library and devel packages
$ sudo port install expat expat-devel

but when i had run it on the terminal,the results was disappointig as follows


LRIM3s-iMac:~ lrim3$ sudo port install automake autoconf libtool
sudo: port: command not found

me too
07-10-2012, 07:16 AM
hello all
will someone say me whether xsltproc is already installed on snow leopard

pdurrant
07-10-2012, 07:23 AM
Well, it is on mine, but whether that's because I installed it or not I can't say. Check in /usr/bin

me too
07-10-2012, 08:37 AM
http://www.boost.org/doc/libs/1_50_0/doc/html/quickbook/install.html#quickbook.install.macosx.native
sir,
in this tutorial if we go to mac os X snow leopard version, it is mentioning that it is preinstalled.
sir will you please confirm me
i am worried,iam not getting much replies to complete my project by the deadline upto tomorrow

plz all help(me too)...

pdurrant
07-10-2012, 02:09 PM
It seems that you're on your own with this one. If anyone at MobileRead was involved in DocBook to ePub conversions, I suspect they'd have chipped in by now.