XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
XSD modelling question


I need to define the Key constraint that consist of
{@id, @name, sg/name} for the below xml instance-

<data>
  <sgs>
     <owner id="a" name="b">  <!-- part of sgKey -->
 	<sg>
 	  <name>sg1</name> <!-- part of sgKey -->
 	  <description/>
 	</sg>
        <sg> <name>sg2</name> <description/> </sg>
        <sg> <name>sg6</name> <description/> </sg>
        <!-- unbounded list of 'sg' elements -->
     </owner>
     <!-- unbounded list of 'owner' elements -->
  </sgs>
</data>

Let's say, I define this sgKey at 'sgs' element scope
as- 
   Selector= owner
   field=@id
   field=@name
   field=sg/name

But this would be an invalid Key definition because
there will be Multiple 'sg/name' children for a given
'owner'. How would I define the Key in this situation.

Thanks for the tip.
    
-D


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS