Subject: Re: project
From: Karl Lieberherr (lieber@ccs.neu.edu)
Date: Fri Nov 03 2000 - 15:34:24 EST
Hi Jennifer:
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.
Example:
A = B C.
B = Float.
C : X | Y.
X = .
Y = .
XMLized:
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
XMLPrintVisitor.
Stelios also has a use in mind of your project.
Maybe you can allow the user some control how the
XMLization should be done.
-- Karl
>From jennifer.l.milligan@lmco.com Fri Nov 3 15:17:03 2000
>Content-return: allowed
>Date: Fri, 03 Nov 2000 15:14:21 -0500
>From: "Milligan, Jennifer L" <jennifer.l.milligan@lmco.com>
>Subject: project
>To: "'Karl Lieberherr'" <lieber@ccs.neu.edu>
>MIME-version: 1.0
>Content-transfer-encoding: 7BIT
>
>Prof Lieberherr
>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 jlmill@twcny.rr.com since I am having some difficulties reliably sending and receiving email from work lately.
>Thanks!
>Jen Milligan
>
>> ----------
>> From: Karl Lieberherr[SMTP:lieber@ccs.neu.edu]
>> Sent: Wednesday, November 01, 2000 12:04 PM
>> To: com3360@ccs.neu.edu
>> Cc: ctzurcanu@tekhnik.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
>> himself?
>>
>> Please drop me a note if you want to do this project.
>> It is not hard to do.
>>
>> See
>> http://www.ccs.neu.edu/research/demeter/DemeterJava/use/latest-demjava/generate/gendisplayvis.beh
>> for the generation code for the DisplayVisitor. It is only about two pages.
>>
>>
>> -- Karl L.
>>
>> >From ctzurcanu@tekhnik.com Wed Nov 1 09:56:35 2000
>> >From: Christian Turcanu <ctzurcanu@tekhnik.com>
>> >X-Priority: 3 (Normal)
>> >To: Karl Lieberherr <lieber@ccs.neu.edu>
>> >Subject: Re[2]: 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 ctzurcanu@tekhnik.com Tue Oct 31 21:14:53 2000
>> >>>Date: Tue, 31 Oct 2000 21:14:31 -0500
>> >>>From: Christian Turcanu <ctzurcanu@tekhnik.com>
>> >>>X-Priority: 3 (Normal)
>> >>>To: Karl Lieberherr <lieber@ccs.neu.edu>
>> >>>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:ctzurcanu@tekhnik.com
>> >
>> >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:ctzurcanu@tekhnik.com
>> >
>> >
>>
>
This archive was generated by hypermail 2b28 : Fri Nov 03 2000 - 15:34:58 EST