Convert DTD to IDL ?

Subject: Convert DTD to IDL ?
From: linas@xxxxxxxxx
Date: Fri, 13 Mar 1998 10:36:53 -0600 (CST)
It's been rumoured that Fred Eisele said:
> 
> Linas Vepstas wrote:
> > Are there any packages that can:
> 
> Yes, I am working in a similar vein, I have been thinking of the
> document instance as the state information for instantiating an
> object and the CORBA/idl as defining the interface.

Yes, exactly.

> I have not really considered combining the two even though the
> interface and implementation state are obviously related (in some
> not obvious way (to me anyway)).

Well, for the benefit of the mailing list which I'mm cc'ing,
*if* I have a DTD of the form:

<!ELEMENT transaction - - (date, amount, description) >
<!ELEMENT date        - - %datetype >
<!ELEMENT amount      - - %numerictype >
<!ELEMENT description - - %stringtype >

I want something that will read this, and *automatically* spit out the
following ascii stream:

class Transaction {
    time_t date;
    double amount;
    char * description;
};

> I believe this can be done using James Clark's SGML/Parser (SP).
> <http://www.jclark.com/sp/index.htm>

Been reding the docs, OK ... also been looking at jade, but 
its still not obvious to me ...

> This issue might be better discussed in the DSSSL list.
> <dssslist@xxxxxxxxxxxxxxxx>

done ...

--linas


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Convert DTD to IDL ?
    • linas - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA11164Fri, 13 Mar 1998 10:26:51 -0500 (EST) <=
      • Gavin Nicol - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA05861Tue, 17 Mar 1998 11:21:54 -0500 (EST)
        • linas - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA27114Wed, 18 Mar 1998 10:02:47 -0500 (EST)
          • Gavin Nicol - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA27766Wed, 18 Mar 1998 10:34:29 -0500 (EST)
      • <Possible follow-ups>
      • Frank A. Christoph - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA12032Fri, 13 Mar 1998 11:17:05 -0500 (EST)