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

QXmlSchemaValidator fails to validate unique tag when path is an attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.0, 5.6.0
    • XML: QtXmlPatterns
    • None
    • 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.
    • macOS

    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

            Unassigned Unassigned
            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