Hi Neil, Thanks for the response. Do you mean that if I did not define a prefix for my namespace, then I can't use unique statements? I have the following
<xsd:unique name="UniqueConPointReference"> <xsd:selector xpath="NetworkInterface"/> <xsd:field xpath="@ConPointID"/> </xsd:unique> My xmlns for the schema file is xmlns="Shunra/VEDL" Which does not declare a namespace prefix. Thanks, Mike -----Original Message----- From: Neil Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 4:38 PM To: [EMAIL PROTECTED] Subject: Re: turning on xsd:unique and xsd:key, keyref validation Hi Michael, This support is enabled by default. Are you sure your <xsd:unique> is actually selecting anything? A common problem people have is to forget that unprefixed names are never in namespaces in XPath statements, so that their <xsd:select> statements don't end up matching anything. Cheers, Neil Neil Graham Manager, XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMAIL PROTECTED] "Michael Williams" <[EMAIL PROTECTED]> 11/16/2004 08:16 AM Please respond to xerces-c-dev To <[EMAIL PROTECTED]> cc Subject turning on xsd:unique and xsd:key, keyref validation Hello, The xsd:unique, xsd:key, and xsd:keyref validations do not appear to be validated in xerces 2.5.0, is there a special flag that needs to be set in order for these constraints to validate. I am using the xsd:unique to ensure that xsd:IDREF attributes in a list of elements are unique. Thanks, Mike Williams ------------------------------------------------------------------------ --------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the Shunra Software Ltd. system manager at [EMAIL PROTECTED] ------------------------------------------------------------------------ --------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]