Go Back   OpenLaszlo Developers Forums > Non-programming help and discussions > Development Tools and Practices

Development Tools and Practices Questions about development tools and practices. An appropriate place to talk about text editors, IDEs, and anything else that makes your development life easier.

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 11-29-2011, 07:51 AM
wagner's Avatar
wagner wagner is offline
Community Member
Join Date: Apr 2005
Location: Pforzheim
Posts: 29
wagner is on a distinguished road
Full Schema/Namespace support code.google.com/p/openlaszlo-schemagenerator/

I published a first version and documentation for creating base lzx.xsd + project.xsd files, published here:


Demo Video:

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:

HTML Code:
<?xml version="1.0" encoding="UTF-8"?>



    xsi:schemaLocation="http://localhost/openlaszlo/lzx ../lzx.xsd 

    http://localhost/openlaszlo/project ../project.xsd"
   <project:externalClass myPublicProperty="false"></project:externalClass>


... 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...

Last edited by wagner; 11-29-2011 at 07:54 AM.
Reply With Quote


ide, namespace, openlaszlo, xsd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.