OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is there equivalent of unique-identifier datatype in XMLSchemaDatatypes ?



 

Mandeep Bhatia wrote:

Hi all,
is there equivalent of unique-identifier datatype in XML Schema Datatypes ? or has anybody defined a complex type?

Sure. If you just want the unique constraint use the Unique construct [1]. If you want to reference it as well use the Key - Keyref constructs [2].

Cheers,
/Eddie

[1] http://www.w3.org/TR/xmlschema-0/#specifyingUniqueness
[2] http://www.w3.org/TR/xmlschema-0/#specifying Keys&theirRefs