Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52411

QXmlSchemaValidator fails to validate unique tag when path is an attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0, 5.6.0
    • Fix Version/s: None
    • Component/s: XML: QtXmlPatterns
    • Labels:
      None
    • Environment:
      I've been able to replicate on both Windows (Windows 7) with Qt 5.6.0 and Mac OS X (10.11.3) with Qt 5.5.0.

      Description

      I've created an XML schema and document that validate correctly in XML Spy. But when attempting to validate them using a QXmlSchemaValidator it fails.

      Build the attached example and press the Validate button to see the bug in action.

      After the initial attempt fails, if you delete two of the three <at:author> lines in the document, leaving a single <at:author> and press Validate at that point the document will validate, but it should have validated with all three authors listed since all 3 authors had unique penNames which is what the <xs:unique> tag in the schema is checking for

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sean Sean
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes