On May 4, 2007, at 2:50 PM, Trevor Nicholls wrote:

Hi



I'm looking at Lyx as a possible "nice" editing facility for an application
which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to a simple schema which I suppose is close to being a small subset of Docbook, and we could in fact create XSL stylesheets to take our files in and out of Docbook
if we wished to.


I'm also making the transition from FrameMaker to LyX. I convert(ed) the xml-files exported from FrameMaker to latex or docbook with XSL stylesheets. The thoughest part were the equations.

I realize that Lyx does not natively support XML source files, but I see
that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my documents and produced a file.xml as per Docbook, so far so good. Now I want to import it back into Lyx, but it seems that going in this direction is not possible.


That's right but the last time I tried it there were still some problems with equations.

You may also have a look at some other packages for converting latex to xml (I didn't try any of them yet):
http://www-sop.inria.fr/miaou/tralics/
http://hermes.roua.org/
http://dlmf.nist.gov/LaTeXML/#get



As far as I can tell there was once a piece of software called 'db2lyx'
which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx development (I've seen warnings against using "newer" versions, i.e. newer than 1.1!) and here
I am on 1.4.4, about to be 1.5.



I don't expect db2lyx to work with the newer LyX versions.
I suppose you should use db2latex (from the same author). LyX can easlily import latex documents. I have tried db2latex but sofar with no success but this has very probably to do with the equations. db2latex uses xsltml for converting mathml equations to latex. I use this package too but made a few changes to it. So I should modify db2latex to use the modified version of mathml ...



If I can add a suitable command in the Conversions table I can see Docbook as a valid format to import from; the trouble is I don't have a command that
works. Does anybody? Surely somebody is doing this!



I'll stick with LyX for the time being. I would prefer to keep my documents in an xml-format but this seems not possible as far as I know. I feel comfortable right now with the idea that LyX can export its documents as docbook.

I suppose you know about:
http://www.karakas-online.de/mySGML/

but like db2lyx it won't work with the latest versions of lyx and it looks rather complicated.

Regards

Patrick De Visschere


Cheers

T




Reply via email to