OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: multiple parents

[ Lists Home | Date Index | Thread Index ]
  • From: Ray Waldin <rwaldin@pacbell.net>
  • To: java-xml-interest@cybercom.net, xml-dev@ic.ac.uk
  • Date: Wed, 15 Dec 1999 03:01:29 -0800

dubolc jean wrote:
> I am translating a UML chart into Xml with the IBM
> parser XML4j and I've got a probleme:
> 
> How can a Child Element have two Parents?
> 
> To make an element inheritate from another, is the
> solution to put an attribute "inheritance" in the
> Child with the value "yes" or "no".

If you're looking for XML Element type inheritance, there is not yet any
such mechanism, except for architype refinement as (not yet really) defined
in XML Schemas (http://www.w3.org/TR/xmlschema-1).  

If you're just trying to represent abstract parent-child relationships in
your xml you can use the NMTOKENS (or IDREFS) attribute type as in:

<uml.chart>
  <element name="element1">...</element>
  <element name="element2">...</element>
  <element name="element3" parents="element1 element2">...</element>
</uml.chart>

or you can use seperate elements, as in:

<uml.chart>
  <element name="element1">...</element>
  <element name="element2">...</element>
  <element name="element3>
    <parents>
      <parent name="element1"/>
      <parent name="element2"/>
    <parents>
    ...
  </element>
</uml.chart>

Good luck...

-Ray

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)



  • References:
    • No Subject
      • From: dubolc jean <xmlstat@yahoo.com>



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS