From Jonathan.Ball at domino-uk.com Tue Oct 18 06:22:12 2016 From: Jonathan.Ball at domino-uk.com (Jonathan Ball) Date: Tue Oct 18 06:22:26 2016 Subject: [xsde-users] Adding unique constraint to an xsd Message-ID: Hi, We have added a constraint such that the ID of polymorphic elements is unique across all instances of those elements. When encountering duplicated IDs, XSD/e does not raise an error - is this supported on XSD/e? Code snippet: ... ... Kind Regards, Jon This Email and any files transmitted with it are intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any reading, redistribution, disclosure or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender immediately and delete the material from your computer. E-mail may be susceptible to data corruption, interception, viruses and unauthorised amendment and Domino UK Limited does not accept liability for any such corruption, interception, viruses or amendment or their consequences. Domino UK Limited Registered in England. Registered Number:1750201. Registered Office Address: Trafalgar Way, Bar Hill, Cambridge, CB23 8TU. From boris at codesynthesis.com Tue Oct 18 11:43:17 2016 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Oct 18 11:43:28 2016 Subject: [xsde-users] Adding unique constraint to an xsd In-Reply-To: References: Message-ID: Hi Jonathan, Jonathan Ball writes: > We have added a constraint such that the ID of polymorphic elements > is unique across all instances of those elements. When encountering > duplicated IDs, XSD/e does not raise an error - is this supported on > XSD/e? > > Code snippet: > > ... > > > > > ... > No, such constraints are not checked. That would require too much memory/object code for XSD/e. Boris