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. Advertising

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:
    303
    Marcin Grunwald
    Mar 8, 2005
  2. lvcargnini

    Matrix composed by two matrix

    lvcargnini, Jul 4, 2006, in forum: VHDL
    Replies:
    3
    Views:
    2,646
    Jonathan Bromley
    Jul 5, 2006
  3. the_jos
    Replies:
    5
    Views:
    420
    Joe Kesselman
    Nov 6, 2006
  4. Replies:
    6
    Views:
    334
  5. Sathyaish
    Replies:
    11
    Views:
    1,653
    Daniel Pitts
    Apr 4, 2007
Loading...

Share This Page