Defining composed keys [XSD]

Discussion in 'XML' started by Francesc Guim Bernat, Jul 29, 2003.

  1. Dear collegues,

    I've this XML:

    <?xml version="1.0"?>
    <model>
    <entity id="1">
    <object id="1"></object>
    <object id="2"></object>
    </entity>
    <entity id="2">
    <object id="1"></object>
    <object id="2"></object>
    </entity>
    </model>

    I want to define a "composed" primary key for identify an element
    object, where the identifiers of this object are the id of the entity
    and the id of the object. But as i can't define a selector that point
    to objects parent i'm not able to check this property throught an XML
    Schema.

    How i can define an XML schema that verify this property ?
    any idea?


    Thanks,

    Francesc Guim Bernat
     
    Francesc Guim Bernat, Jul 29, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. iksrazal
    Replies:
    2
    Views:
    418
    Marcin Grunwald
    Mar 8, 2005
  2. johny smith
    Replies:
    8
    Views:
    713
    Peter Koch Larsen
    Jul 2, 2004
  3. lvcargnini

    Matrix composed by two matrix

    lvcargnini, Jul 4, 2006, in forum: VHDL
    Replies:
    3
    Views:
    2,962
    Jonathan Bromley
    Jul 5, 2006
  4. the_jos
    Replies:
    5
    Views:
    631
    Joe Kesselman
    Nov 6, 2006
  5. Replies:
    6
    Views:
    520
  6. Sathyaish
    Replies:
    11
    Views:
    2,196
    Daniel Pitts
    Apr 4, 2007
  7. alan
    Replies:
    2
    Views:
    339
  8. candide
    Replies:
    6
    Views:
    427
    candide
    Apr 1, 2011
Loading...