Hi Nico,

Nico Williams wrote:
> My script works around all those issues and is complete enough (if a
> bit ugly) that I can show it to you folks and let you decide if this
> is something that you want to pursue.  Personally I'm convinced that
> is a truly faithful-to-the-original-.lyx XML export format would be
> incredibly useful by allowing the use of XSLT to convert to many other
> XML schemas.  It should also be possible to create XSLs to convert
> back to this faithful LyX XML schema and then to convert back to .lyx
> (also via XSLT), thus allowing import from many such schemas as well.
> IMO it's a lot better to deal with XSLT for foreign document format
> import/export functionality than C++, though this is admittedly a
> personal bias.
> 
> I'd be glad to contribute this code.  I don't think I can finish it
> though, but I'm hoping others will see the value in this approach and
> help out.

I think we can support your converter via recognition in configure.py
so XML convertor appears in View/Export menus when installed.
We can also put it in contrib section on our ftp server, if you would like.

If by contribution you mean that we should include it in our development
tree and distribute it as part of LyX itself things became more troublesome.

The way you approached the whole problem is pretty much against the current
code infrastructure and maintaining separate python scripts would be tiresome,
because any fileformat change have to be separately handled in your scripts
(i.e. .lyx is somewhat living creature and maintain it on more than in one
place, currently C++ codebase, is not wise design choice.)

We can discuss it more if some developer stands up to maintain this creature -
note, however, that we already had long threads here both about 1) XML as native
.lyx format and 2) using external .lyx convertors (elyxer) and your proposal
does not seem to bring new light into the problems encountered...


On a different note, we have working but somewhat outdated docbook export and
we seek someone to update it to more recent version.
Wouldn't be Docbook 5 output xml-ized enough for your export needs?

Cheers,
Pavel

Reply via email to