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


Help: OASIS Mailing Lists Help | MarkMail Help



   XLink question re: arc duplication

[ Lists Home | Date Index | Thread Index ]

Can someone explain to me the reasoning behind

It seems to me that it would be more useful to make the constraint that
to, from and arcrole are unique, not just from and to. I'm not sure why
two resources could not be related in two different ways. For example,
consider the following which might represent a class (modified from the

<extendedlink xlink:type="extended">
  <loc xlink:type="locator" xlink:href="..." xlink:label="parent1"
xlink:title="p1" />
  <loc xlink:type="locator" xlink:href="..." xlink:label="parent2"
xlink:title="p2" />
  <loc xlink:type="locator" xlink:href="..." xlink:label="parent3"
xlink:title="p3" />
  <loc xlink:type="locator" xlink:href="..." xlink:label="child1"
xlink:title="c1" />
  <loc xlink:type="locator" xlink:href="..." xlink:label="child2"
xlink:title="c2" />
  <loc xlink:type="locator" xlink:href="..." xlink:label="child3"
xlink:title="c3" />  
  <go xlink:type="arc" xlink:from="parent1" xlink:to="child1"
  <go xlink:type="arc" xlink:from="parent1" xlink:to="child2"
  <go xlink:type="arc" xlink:from="parent1" xlink:to="child3"
  <go xlink:type="arc" xlink:from="parent1" xlink:to="child1"
  <go xlink:type="arc" xlink:from="parent2" xlink:to="child2"
  <go xlink:type="arc" xlink:from="parent3" xlink:to="child3"

Now this fails the arc constraint but I would argue that they are
semantically unique. I've come across one situation where this sort of
thing would be very useful (but I'm loath to go it alone... Someone once
told me its better to be standard than right). Now it seems that I'll
have to go through the awkward step of duplicating locators so I can
follow the rec (or I have to redo my semantics). 

I know that many people don't particularly like XLink, but I think it's
a worth while tool for doing these sorts of things.  

H. Adam van den Hoven
Web Developer
Credit Union Central of BC


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

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