On Mon, Aug 06, 2001 at 04:16:30PM +0200, Edwin Leuven wrote:
> > So that XML parsers will handle it. (but I don't think we want to use
> > xml parsers (perhaps a sax parser))
> 
> For what it's worth, the Qt doc states:
> 
> The XML module provides a well-formed XML parser using the SAX2
> (Simple API for XML) interface plus an implementation of the DOM
> Level 2 (Document Object Model).

As I said in my earlier note, we probably don't need this degree of
compliance.  We already have our own custom DOM in the LyX kernel (and
always have, too).  The XML parser we'll need only has to handle one
valid format.  We can, furthermore, document that parser in XSL,
thereby making LyX documents portable.

As for any inverse conversions, I'm sure someone somewhere is
developing an open-source XML/XSL parser that'll convert documents
between DTD's.  No need to duplicate those efforts --- there's more
than enough for LyX do deal with.

BTW:  I think, with all of the file format changes, that maybe it's
time to modularize the file reading/writing parts of the code and
create a "translator" binary to convert from older to newer formats.
That would cut down on the amount of backward-compatibility code the
LyX kernel has to carry around, and will permit our users to convert
their older files without too much effort.

-- 
John Weiss

"Not through coercion.  Not by force.  But by compassion.  By
affection.  And, a small fish."  -His Holiness, the 14th Dalai Lama 

Reply via email to