On Mon, Jul 8, 2013 at 8:52 PM, Steve Litt <[email protected]> wrote: > [...]
Let me do a broken disk impression... I've used XHTML + XSLT successfully to convert to other XML schemas. XHTML doesn't quite preserve enough metadata for me though, so I've also written a LyX -> XML converter[0] that preserves as much metadata as possible (if I had written an XML -> .lyx XSLT I could test that it round-trips, which it should, with only minute differences[1]). I know there's been some efforts recently to add native XML support to LyX, so soon you might not need to use either LyXHTML nor my lyx2xml. [0] https://github.com/nicowilliams/lyx2rfc/blob/master/src/lyx2xml (and associated *.py files in the same directory). [1] LyX allows you to mix styles in such a way that doesn't involve proper containership. lyx2xml works around this by closing and re-opening styles to restore proper containership. This is the only thing that wouldn't round-trip exactly, but you wouldn't notice this difference in the GUI. Nico --
