docbook import?

Tags ( )

quick question: has anyone attempted to parse and import docbook into mori?

I have some docbook content created by a linux-based hierarchical notetaker (gjots) and was thinking about getting it into mori.

any pointers would be appreciated. otherwise, I might try to do an intermediate conversion to opml before importing into docbook (sounds lossy, but my main plan b right now).

thanks,

jeff

(btw: I just installed the 1.6 beta. I really dig the tags work being done!)

There is definitely no

There is definitely no direct support for doc-book import. Do you just want to import the content or do you need the doc-book markup too? If you just want the content you could probably (or someone could, but not me because transforming xml gives me headaches) generate a series of plain text documents from the doc-book format. Probably you could even generate a file-folder hierarchy of those plain text files, and then Mori can import that easily.

Jesse

Convert to HTML or RTF

Depending on how much structure you want to preserve (i.e., do you want chapters to be converted into linked subentries, etc?), the easiest approach would probably be to convert your docbook files to html/xhtml or RTF, and then import that into Mori. Stylesheets for converting docbook to other markup or RTF are linked from here. Tools to use the stylesheets to yield a variety of different output formats are here. You'd probably get the best accuracy from converting to RTF and then pasting that into a Mori entry.

That said, if the structure of the documents wasn't too complex and I didn't have a lot of XSL tools sitting around--and I wanted to do this on a Mac--I'd probably use the docbook to html style sheet available above with the excellent open source TestXSLT to generate html, then copy that from the browser display to Mori. TestXSLT allows the user to choose between the Sablotron, Libxslt, Saxon and Xalan-J XSLT processors. It also contains the FOP XSL-FO rendering engine, so you could get PDF, and probably RTF, output from it using the stylesheets above.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.