From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id DDC343EEF7 for ; Sat, 26 Oct 2002 23:41:59 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9R3fxj25002 for blinux-list@listman.redhat.com; Sat, 26 Oct 2002 23:41:59 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g9R3fxf24998 for ; Sat, 26 Oct 2002 23:41:59 -0400 Received: from yonge.cs.toronto.edu (root@yonge.cs.toronto.edu [128.100.1.8]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9R3KHw02733 for ; Sat, 26 Oct 2002 23:20:17 -0400 Received: from keynes.cs.toronto.edu ([128.100.26.165]) by yonge.cs.toronto.edu with SMTP id <15248-7800>; Sat, 26 Oct 2002 23:41:55 -0400 Received: from neil (helo=localhost) by keynes.cs.toronto.edu with local-esmtp (Exim 3.12 #1 (Debian)) id 185dzT-0000AT-00 for ; Sat, 26 Oct 2002 23:21:27 -0400 Date: Sat, 26 Oct 2002 23:21:27 -0400 From: Neil Graham To: blinux-list@redhat.com Subject: Re: UML via XML ? In-Reply-To: <87u1j9p82w.fsf@pulsar.resi.insa-lyon.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: blinux-list@redhat.com Sender: blinux-list-admin@redhat.com Errors-To: blinux-list-admin@redhat.com X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: blinux-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: Hi Boris, On Sat, 26 Oct 2002, Boris Daix wrote: > I feel the solution is not so far... I can say > that, for sure, the software you mentionned can export UML works in > XML-like formats, that's already a not-so-bad thing. So if I understand your plan, you're planning to figure out the (indirect) mapping from UML to XMI, then use an SGML editor to write XMI documents that you'll then feed to a UML generator. Evidently, this is indeed possible. > Well, psgml is an emacs-mode, not a parser. But anyway, I've read > that SGML parser can read XML, as HTML : the Python modules for SGML > are often used to parse HTML, as it's a "tag-fashion" language too. HTML is an SGML language; XML is not. The trouble with using an SGML editor to generate XML is that you're very likely to generate an ill-formed XML document, which will cause an XML processor--like the one that must underlie the UML generator--to barf all over your shoes. I'm certain emacs will have some kind of native XML mode, and equally that emacspeak will support it well (TV Raman helped develop VoiceXML, so I daresay he'll have completely solved this problem. :) ) But this is an anthill compared with the mountain of the core problem... > He he... I believe that if I say to my teatchers "Hey, look, with > GNU/Linux, I'm able to work with UML (via XML)", I'm sure Open Software > would be clapped for hours ! :-) No question. If I were you though, I think I'd unearth my manual tactile diagram-drawing tools and crank UML out that way. That's how I did digital circuit diagrams way back when and it worked well enough; but then everyone else was working manually too, so my disadvantage wasn't acute. But I'd analogize the XMI-to-UML solution to writing Java by using a binary editor to produce bytecode, then using a disassembler to induce Java from it... In fact, that'd probably be much easier since bytecode maps naturally back to Java, whereas XMI only maps to UML via the indirect route of the MOF. :) Anyway, best of luck! I dunno about other folks, but I'd love to hear how you end up solving this problem; it's one more and more of us will face in the future, no doubt about it. Cheers, Neil