Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-943

XML schema; use of elementFormDefault='unqualified'; cannot validate some documents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Final
    • 8.0.0.Alpha3
    • Documentation
    • None

      When attempting to write a (seemingly) valid jboss-deployment-structure.xml using the schema in ./docs, my document fails to validate.

      This is because of the settings used in the XSD. Have these XSDs been used to validate actual documents? By setting unqualified to 'qualified' then the documents will probably validate.

      $ git grep elementFormDefault..unqualified
      jboss-deployment-dependencies-1_0.xsd: elementFormDefault="unqualified"
      jboss-deployment-structure-1_0.xsd: elementFormDefault="unqualified"
      jboss-deployment-structure-1_1.xsd: elementFormDefault="unqualified"
      jboss-deployment-structure-1_2.xsd: elementFormDefault="unqualified"
      jboss-ejb-client_1_0.xsd: elementFormDefault="unqualified"
      jboss-ejb-client_1_1.xsd: elementFormDefault="unqualified"
      jboss-ejb-client_1_2.xsd: elementFormDefault="unqualified"
      jboss-jpa_1_0.xsd: elementFormDefault="unqualified"

            rhn-engineering-rhusar Radoslav Husar
            genman_jira Elias Ross (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: