On May 10, 2006, at 7:51 PM, Benjamin Shine wrote: > So, let me ask the meta-question: what do we do with all these > schemas? Do we need all the different dialects that we're producing? >
Well, my understanding may be only partial, or it may be entirely incorrect since I didn't write the code, but here's what I think is going on. There is a core schema (lzx.rnc), written in "RELAX NG" compact syntax, describing basically what is in the LFC. We use Jing/Trang to convert this specification into a full schema (the dtd). When the tag compiler encounters a new class definition, it generates a schema extension that is effectively appended to the DTD and reprocessed to form a new DTD. This DTD is used for validation while processing LZX markup. (There is a separate DTD, manually maintained, that is used for validation and symbol completion in IDE4Laszlo.) In addition, we do schema-like things in order to generate the RefGuide. We pull most of what would go into a DTD out of the LFC sources, and also (using a slightly different code path) out of the components. This information is used to generate an XML document -- not a DTD, I don't think -- that is combined with the (manually written) wrapper pages to generate the final RefGuide pages. I think that's going on. Anyone who knows this stuff better: please correct me! jim > > On May 10, 2006, at 4:22 PM, Jim Grandy wrote: > >> On May 10, 2006, at 3:05 PM, Benjamin Shine wrote: >> >>> >>> Who is the owner/caretaker of trang? >>> >> I think at this point some combination of Henry, Tucker, and me. >> >>> It seems to be another legacy 3rd party library complicating >>> deployment... and it was last updated in 2003. >>> >> According to http://www.thaiopensource.com/relaxng/trang.html, >> that's the most recent release. >>> It's purpose seems to be convert lzx.rnc (Relax NG compact schema) >>> into rng, dtd, and xsd. I bet that there is something more modern/ >>> supported that does that, which our build can invoke. Any >>> suggestions? >>> >> I spent some time looking into this for jing, and I don't think >> there's anything more modern. >>> -ben >>> _______________________________________________ >>> Laszlo-dev mailing list >>> [email protected] >>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev >> > > benjamin shine > software engineer > [EMAIL PROTECTED] > > > _______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
