Jochen,

I think what you are saying (please correct me if I misunderstood)
is to do something like this:

     [Java src] --->  (derive)  ---> [LLRP.xsd XML schema]

What many of us are working on is more like this

     [LLRP.xsd XML schema]
     [llrpdef.xml description] -+->  (derive) ---> [C++ src]
                                |
                                +->  (derive) ---> [C src]
                                |
                                +->  (derive) ---> [Java src]
                                |
                                +->  (derive) ---> [C# src]
                                |
                                +->  (derive) ---> [other src]
                                |
                                +----------------> [Perl]
                                |
                                +----------------> [other scripting]

I'm working on C and C++ code generators implemented in XSLT.

Thoughts?

Regards,
        -gww



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jochen Mader
Sent: Tuesday, July 17, 2007 5:29 PM
To: LLRP Toolkit Development List
Subject: Re: [ltk-d] XML LLRP description


> Beans? Can you elaborate on this approach (if possible use the Common
> Tongue as some of us aren't Java guys).
There is only java in my world ;)
Sorry, should have read all of the posts, I was just looking at the LLRP
stuff we are doing right now and that is java-only stuff.

A bean is just a convention in java on how to lay out a class.
The interesting part is the annotation an jaxb part.
By annotating a java class one can for example specify how parameters
have to look like (max values, min values, regular expressions ...) that
go into a method.
The JAXB compiler gathers that information from the java files and
creates a XSLT file.
The advantage of this is that all information is kept within the
sorucecode and modifications to the sourcecode can instantly be
reflected to the annotations.
I prefer that way over the code generation approach mentioned earlier
for same reasons mentioned earlier.
Just an idea I threw in without having read all of the posts in here.

Cheers
Jochen


------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to