John Weiss <[EMAIL PROTECTED]> writes: | On Wed, Oct 13, 2004 at 10:36:21AM +0200, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> >> | Lars, about the "deeper" stuff. Doesn't the need for it just "go >> | away" in an xml format because you can nest paragraphs within >> | paragraphs. Isn't that exactly what "deeper" does now? >> >> It is not really hard to get rid of the deeper stuff... but remember >> that getting rid of it in xml does not change the internal paragraph >> structures. So we have to fiddle a bit. Not hard, but a bit hackish. > | Regarding the "deeper" tag: > | While looking at the LyX source & Lars' prototype DTD on my flight to | Seattle, it occurred to me that we can solve the entire "deeper" thing | quite easily: > | 1. All lists are tags, like so: | <enumerated depth="n"> | <item> .... </item> | </enumerated> | <itemized depth="n"> | <item> .... </item> | </itemized> | etc. > | 2. All tags (or perhaps all paragraph-tags) contain an optional | attribute, 'depth', whose default value is "0" unless otherwise | specified. > | This would solve the "deeper" problem without requiring us to get rid | of it ... yet.
I just got rid of it. (And we don't want to go in the same trap as we did with the current lyx format: defining hierarchy by use of attributes instead of structure.) And to make the enumerated lists as above... not easy. You have to do massive fiddling with the internal structure when writing... and the same again when reading. Please look at the latest version of the DTD. And it is not really a prototype DTD anymore... (but sure it can use some more work)
lyxformat.dtd
Description: Binary data
-- Lgb