Radu Coravu created XERCESJ-1581:
------------------------------------

             Summary: 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
            Reporter: Radu Coravu
            Priority: Minor


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to