This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi, The concept of using IDREF is not clear.I understand that using IDREFS enables us to have multiple unique values for an ID type attribute,but what exaclty is the purpose of an IDREF? Thanks, Vasudha
IBM Certified Developer -XML and Related Technologies(141)<br />SCJP2 SCWCD
Consider a authorization store. You will typically have n users and they need to be assigned to specific roles. So you might want to declare role elements having attributes of type ID. Then you might associate users with the role using an attribute of type IDREF. <Role name="ADMIN" roleid="role_admin"/> <Role name="USER" roleid="role_user"/> <User name="Guido" assocrole="role_admin"/> <User name="Rossum" assocrole="role_user"/> and in the dtd <!ATTLIST Role roleid ID> <!ATTLIST User assocrole IDREF> If a user can have multiple roles then assocrole must be of the type IDREFS <User name="Rossum" assocrole="role_user role_admin"/>