[ 
https://issues.apache.org/jira/browse/XERCESC-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alberto Massari resolved XERCESC-1237.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.0

> xs:unique is used like xs:key
> -----------------------------
>
>                 Key: XERCESC-1237
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1237
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>    Affects Versions: 2.5.0
>         Environment: Win XP
> PC
>            Reporter: Günter Hochhold
>         Assigned To: Alberto Massari
>            Priority: Blocker
>             Fix For: 2.7.0
>
>
>               <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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to