I've updated the lzx.xsd. I also added an ANT build target to generate the lzx.xsd.
Sebastian 2011/11/30 [email protected] <[email protected]> > The current schema files are generated from the file lzx.rnc not lfc.xml. > Actually all schema files are generated from that. > Lzx.rnc is hand maintained file in relaxng compact syntax. > > So there is no link between the lfc.xml and any of the current schema > files from my point of view.... the current lzx.xsd has the same status > like the lzx.rnc ... so last change according svn.log was 2009. > > And even if... the lfc.xml des not contain any of the documentation tags / > comments from the sources, so even if any volunteer is able to generate an > xsd / dtd from the existing custom xml in lfc.xml ... you actually don't > have all the information in their. > > I was also trying to debug the SchemaBuilder.java from the sources in > trunk, it seems to me that the hook that reads/write the docs for the > event/attributes/methods /classes (and obviously knows documentation tags) > is not available in the schema generation. > > Sebastian > Am 30.11.2011 00:10 schrieb "Raju Bitter" < > [email protected]>: > > Thanks! >> >> I've seen a definition for the mixin interface in lfc.xml: >> <interface extends="MetaClass" metasym="true" name="mixin"> >> <attribute name="name" required="true" type="string"/> >> </interface> >> >> Not sure how the <mixin> tag is reflected within the schema files >> besides this entry. >> >> - Raju >> >> On Tue, Nov 29, 2011 at 10:30 PM, [email protected] >> <[email protected]> wrote: >> > It supports using the "with" attribute but I did not see the "mixin" >> tag. >> > >> > I will add this to the base constructs >> > >> > Sebastian >> > >> > >> > >> > 2011/11/29 Raju Bitter <[email protected]> >> >> >> >> Cool, that's very useful for folks using an XML editor. Are mixins >> >> supported as well? >> >> >> >> On Tue, Nov 29, 2011 at 6:05 PM, [email protected] >> >> <[email protected]> wrote: >> >> > I published a first version and documentation for creating base >> lzx.xsd >> >> > + >> >> > project.xsd files, published here: >> >> > >> >> > http://code.google.com/p/openlaszlo-schemagenerator/ >> >> > >> >> > Demo Video: >> >> > http://www.youtube.com/watch?v=9a2A8zy57a0 >> >> > >> >> > The JAR contains tasks to generate a XSD from your project LZX >> files, by >> >> > doing that: >> >> > >> >> > You have full Schema Validation in Eclipse and it will show you all >> your >> >> > XML >> >> > schema errors >> >> > The validation is aware of ALL tags and attributes: The LZX >> >> > base-components(+incubator) and your project specific code >> >> > You get content-sensitive drop down menus for Tags and Attributes >> >> > The XSD Schema also contains type-restriction, defaultvalues and >> >> > documentation for Tags and Attributes parsed from your source files >> >> > there is a task to trim the schema from your files again as the >> >> > OpenLaszlo >> >> > compiler does not accept schema and prefixes (yet ;)) >> >> > >> >> > So your LZX file looks like that: >> >> > >> >> > <?xml version="1.0" encoding="UTF-8"?> >> >> > >> >> > >> >> > <canvas >> >> > xmlns="http://localhost/openlaszlo/lzx" >> >> > >> >> > >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> > >> >> > >> >> > xmlns:project="http://localhost/openlaszlo/project" >> >> > xsi:schemaLocation="http://localhost/openlaszlo/lzx ../lzx.xsd >> >> > >> >> > >> >> > http://localhost/openlaszlo/project ../project.xsd" >> >> > > >> >> > <project:externalClass >> >> > myPublicProperty="false"></project:externalClass> >> >> > >> >> > >> >> > </library> >> >> > >> >> > >> >> > ... actually what needs to be done now is to wrap my library in an >> >> > Eclipse >> >> > Project so that the steps that I currently do using ANT are >> >> > automatically >> >> > done by the IDE. >> >> > >> >> > There is also a hook in the JAR-library to transfer an existing >> >> > "Non-XSD-aware" project into a XSD aware project. I will publish >> >> > something >> >> > about that soon. >> >> > >> >> > Based on the XSD you could also generate Java files with JAXB, for >> >> > example >> >> > you can create a whole Java representative of the LFC and your >> project >> >> > ... >> >> > or you could potentially create some data-services that automatically >> >> > generate LZX from Java and vice verca... >> >> > >> >> > Sebastian >> >> > >> >> > -- >> >> > Sebastian Wagner >> >> > http://www.openmeetings.de >> >> > http://www.webbase-design.de >> >> > http://www.wagner-sebastian.com >> >> > [email protected] >> > >> > >> > >> > >> > -- >> > Sebastian Wagner >> > http://www.openmeetings.de >> > http://www.webbase-design.de >> > http://www.wagner-sebastian.com >> > [email protected] >> > -- Sebastian Wagner http://www.openmeetings.de http://www.webbase-design.de http://www.wagner-sebastian.com [email protected]
