You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by xe...@xml.apache.org on 2004/10/19 17:25:51 UTC

[jira] Closed: (XERCESC-1237) xs:unique is used like xs:key

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1237

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1237
    Summary: xs:unique is used like xs:key
       Type: Bug

     Status: Closed
   Priority: Blocker
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             Validating Parser (Schema) (Xerces 1.5 or up only)
   Versions:
             2.5.0

   Assignee: 
   Reporter: Günter Hochhold

    Created: Thu, 1 Jul 2004 4:50 AM
    Updated: Tue, 19 Oct 2004 8:24 AM
Environment: Win XP
PC

Description:
		<xs:unique name="uniqueLNodeType">
			<xs:selector xpath="scl:LNodeType"/>
			<xs:field xpath="@id"/>
			<xs:field xpath="@iedType"/>
		</xs:unique>

This xs:unique seems to be validated like xs:key.

In my xml-file there is a  <LNodeType id="IED_0001/PROT/LPHD1" lnClass="LPHD">
Xerces tells me, there are not enough values specified for <unique>

If I add an iedType like here:    <LNodeType id="IED_0001/PROT/LLN0" lnClass="LLN0" iedType="frranz">
Xerces seems to be satisfied.

But this is not correct: the fields of an unique needn't to be required. They may be optional and so they may be missing.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org