On 2013-04-24, Nico Williams wrote: > On Wed, Apr 24, 2013 at 4:40 PM, Guenter Milde <mi...@users.sf.net> wrote:
>> This means it might be easier to use XML as intermediate format: Docutils >> can generate a native XML representation of a reStructuredText document and >> also re-generate a document tree from this representation. >> There are attempts to have a "native LyX XML" format (either replacing the >> current fileformat or as an alternative representation), so XSLT >> transformations may help to transform between these two. > LyX -> XML converter: > https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml > https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml.py > https://github.com/nicowilliams/lyx2rfc/blob/master/src/xml_streamer.py > After that apply an XSL to change schemas. Yes, this was my idea. However, going the XML/XSL way we still need to handle the incompatibilities between the document models. I don't know XSL, so my contributions to such a project would be limited to answering questions about Docutils/reStructuredText and testing. If you are interested, there is reference material in http://docutils.sourceforge.net/docs/ref/ including the Docutils Generic DTD http://docutils.sourceforge.net/docs/ref/docutils.dtd and an (incomplete) description of the document model http://docutils.sourceforge.net/docs/ref/doctree.html Thanks, Günter