You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2006/01/16 06:33:21 UTC

[jira] Assigned: (XERCESJ-1128) Incorrect values for {validaiton attempted} property in PSVI

     [ http://issues.apache.org/jira/browse/XERCESJ-1128?page=all ]

Michael Glavassevich reassigned XERCESJ-1128:
---------------------------------------------

    Assign To: Michael Glavassevich

> Incorrect values for {validaiton attempted} property in PSVI
> ------------------------------------------------------------
>
>          Key: XERCESJ-1128
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1128
>      Project: Xerces2-J
>         Type: Bug
>   Components: XML Schema Structures
>     Versions: 2.7.1
>     Reporter: Peter McCracken
>     Assignee: Michael Glavassevich
>  Attachments: val_att_fix.txt
>
> schema.xsd:
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <xsd:complexType name="X">
>     <xsd:sequence>
>     </xsd:sequence>
>   </xsd:complexType>
> </xsd:schema>
> doc1.xml:
> <A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <B />
>    <C xsi:type="X" />
> </A>
> doc2.xml:
> <A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <B xsi:type="X" />
>    <C />
> </A>
> After validating doc1.xml against schema.xsd, he {validation attempted} property of B should be VALIDATION_NONE and C should be VALIDATION_FULL.  However, Xerces reports the {validation attempted} property of C as VALIDATION_PARTIAL.
> Conversely, when validating doc2.xml against schema.xsd, the {validation attempted} property of B should be VALIDATION_FULL and C should be VALIDATION_NONE.  However, once again Xerces reports the {validation attempted} property of C as VALIDATION_PARTIAL.
> The problem has to do with updating the fNNoneValidationDepth and fNFullValidationDepth in XMLSchemaValidator#handleEndElement().  Currently, the variables are only updated together, but they should actually be updated independently.  I'll attach a patch.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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