Subject: Re: project
From: Karl Lieberherr (firstname.lastname@example.org)
Date: Fri Nov 03 2000 - 15:34:24 EST
yes, we all like your project a lot!
I think a good way to create the printvisitor for XML is
to XMLize the class dictionary (XMLize is a new word that I just invented for
turning a class dictionary into an XML schema.
A = B C.
B = Float.
C : X | Y.
X = .
Y = .
A = "<A>" B C "</A>".
B = "<B>" Float "</B>".
C : X | Y.
X = "<X>" "</X>".
Y = "<Y>" "</Y>".
Now you can use DemetrJ to generate the print visitor.
An you can copy it into your original directory and call it
Stelios also has a use in mind of your project.
Maybe you can allow the user some control how the
XMLization should be done.
>From email@example.com Fri Nov 3 15:17:03 2000
>Date: Fri, 03 Nov 2000 15:14:21 -0500
>From: "Milligan, Jennifer L" <firstname.lastname@example.org>
>To: "'Karl Lieberherr'" <email@example.com>
>Is it OK for me to go ahead with this as my project? Is there any additional information/requirements that Christian would like to provide beforehand? When you reply to this message, please also reply to firstname.lastname@example.org since I am having some difficulties reliably sending and receiving email from work lately.
>> From: Karl Lieberherr[SMTP:email@example.com]
>> Sent: Wednesday, November 01, 2000 12:04 PM
>> To: firstname.lastname@example.org
>> Cc: email@example.com
>> Subject: former COM 3360 student
>> Christian Turcanu is a former COM 3360 student who
>> needs two additional visitors generated from
>> a cd in DemeterJ.
>> Is one of you interested in an XML project as
>> described below? Or should Christain implement this
>> Please drop me a note if you want to do this project.
>> It is not hard to do.
>> for the generation code for the DisplayVisitor. It is only about two pages.
>> -- Karl L.
>> >From firstname.lastname@example.org Wed Nov 1 09:56:35 2000
>> >From: Christian Turcanu <email@example.com>
>> >X-Priority: 3 (Normal)
>> >To: Karl Lieberherr <firstname.lastname@example.org>
>> >Subject: Re: DemeterJ-XML
>> >Hello Karl,
>> >Wednesday, November 01, 2000, 6:09:17 AM, you wrote:
>> >KL> Hi Christian:
>> >KL> we don't have it yet, but I have added the following
>> >KL> to the project list:
>> >KL> <HR WIDTH="100%">
>> >KL> <B>DemeterJ and XML
>> >KL> </B>
>> >KL> DemeterJ currently provides a PrintVisitor and a DisplayVisitor
>> >KL> to print out an object. Implement a third visitor generator
>> >KL> for DemeterJ that produces an XMLPrintVisitor. The XMLPrintVisitor
>> >KL> will print an object in markup form , i.e. in
>> >KL> a form that is acceptable to a general XML parser.
>> >KL> Also generate a class called XMLSchema with one static method: print()
>> >KL> that prints the class dictionary as an XML schema.
>> >KL> The descriptions produced by the XMLPrintVisitor (if the traversal
>> >KL> goes everywhere: from Source to *) should conform to the schema.
>> >KL> There are several options on how to translate a
>> >KL> class dictionary into an XML schema. The first part of the project
>> >KL> is to propose such a translation.
>> >KL> Would this fit your needs?
>> >KL> -- Karl
>> >>>From email@example.com Tue Oct 31 21:14:53 2000
>> >>>Date: Tue, 31 Oct 2000 21:14:31 -0500
>> >>>From: Christian Turcanu <firstname.lastname@example.org>
>> >>>X-Priority: 3 (Normal)
>> >>>To: Karl Lieberherr <email@example.com>
>> >>>Subject: DemeterJ-XML
>> >>>Mime-Version: 1.0
>> >>>Content-Transfer-Encoding: 7bit
>> >>>Hello Karl,
>> >>> I was wondering if you implemented XML-style output for a "printing
>> >>> visitor" in DemeterJ. That would make it compatible with XML and one
>> >>> could use such facility to do XML transformations using DemeterJ.
>> >>>Best regards,
>> >>> Christian mailto:firstname.lastname@example.org
>> >If we will be able to get the object data in XML format AND the Schema
>> >of such object then yes, that is precisely what I was looking for.
>> >Though it might take two "printing" visitors for doing this. My main
>> >interest is printing the XML object, not its Schema.
>> >Would you or Doug be
>> >able to tell me an approximative date for the implementation of this?
>> >If it takes way too long I just might do it myself.
>> >Best regards,
>> > Christian mailto:email@example.com
This archive was generated by hypermail 2b28 : Fri Nov 03 2000 - 15:34:58 EST