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

David Costanzo updated XERCESJ-1581:
------------------------------------
    Fix Version/s: 2.12.0

For the purpose of release tracking...the fix in trunk was made in subversion 
REV 1380445.  The fix in xml-schema-1.1-dev was made in subversion REV 1380447.

> Report all id/idref problems when validating XML against DTD or XML Schema
> --------------------------------------------------------------------------
>
>                 Key: XERCESJ-1581
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1581
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DTD, XML Schema 1.0 Datatypes, XML Schema 1.1 Datatypes
>    Affects Versions: 2.11.0
>            Reporter: Radu Coravu
>            Assignee: Michael Glavassevich
>            Priority: Minor
>             Fix For: 2.12.0
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> By default when the first broken IDREF is found an error is reported and no 
> other IDREF is checked.
> Because of this an use who has a lot of broken IDREFS would have to fix the 
> problems one at a time and to run the validation after each fix.
> Instead if would be nice if all broken IDREFS were reported as errors.
> So the method 
> "org.apache.xerces.impl.validation.ValidationState.checkIDRefID()" could 
> report all broken IDREFS and then you could build and throw a message for 
> each one.
> So if the following XML would be validated with the Xerces sample 
> "personal.xsd" the validation should report more problems than it does not:
> <personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:noNamespaceSchemaLocation="personal.xsd">
>     <person id="Big.Boss">
>         <name>
>             <family>Boss</family>
>             <given>Big</given>
>         </name>
>         <email>[email protected]</email>
>         <link subordinates="one.worker two.worker three.worker four.worker 
> five.worker"/>
>     </person>
>     <person id="one.worker">
>         <name>
>             <family>Worker</family>
>             <given>One</given>
>         </name>
>         <email>[email protected]</email>
>         <link manager="Big.Boss2"/>
>     </person>
>     <person id="two.worker">
>         <name>
>             <family>Worker</family>
>             <given>Two</given>
>         </name>
>         <email>[email protected]</email>
>         <link manager="Big.Boss3"/>
>     </person>
>     <person id="three.worker">
>         <name>
>             <family>Worker</family>
>             <given>Three</given>
>         </name>
>         <email>[email protected]</email>
>         <link manager="Big.Boss4"/>
>     </person>
>     <person id="four.worker">
>         <name>
>             <family>Worker</family>
>             <given>Four</given>
>         </name>
>         <email>[email protected]</email>
>         <link manager="Big.Boss5"/>
>     </person>
>     <person id="five.worker">
>         <name>
>             <family>Worker</family>
>             <given>Five</given>
>         </name>
>         <email>[email protected]</email>
>         <link manager="a"/>
>     </person>
> </personnel>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to