Thread: Idref

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Idref


    hi ,
    if i have DTD like this :

    <!ELEMENT db (company*, employee*)>
    <!a company has a company id number and name and contains a list of its products -->
    <!ELEMENT company>
    <!ATTLIST company
    c_id ID #REQUIRED
    name CDATA #REQUIRED
    >
    <!an employee has a name and the company for which he works -->
    <!ELEMENT employee>
    <!ATTLIST employee
    name CDATA #REQUIRED
    company IDREF
    e_id ID #REQUIRED
    partner IDREF
    >


    my question is :
    the value of atrribute partner (in employee) can have id from category ?? meaning the IDREF can reference to c_id (from category) ???
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,002
    Rep Power
    9398

IMN logo majestic logo threadwatch logo seochat tools logo