Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-65

Add -noUPA option to Ant Task

    XMLWordPrintableJSON

Details

    Description

      I am trying to run the schema compiler on the SPML 1.0 schema (http://www.oasis-open.org/committees/download.php/4138/os-pstc-spml-schema-1.0.xsd) and get multiple

      [xmlbean] [ERROR] src/wsdl/os-pstc-spml-schema-1.0.xsd:85: error: cos-nonambig: Content model violates the unique particle attribution rule.

      I believe they may be attributed to the fact that the SPML uses an "open content model" including multiple

      <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />

      according to this post

      http://lists.oasis-open.org/archives/provision-comment/200308/msg00001.html

      Since the point of using the XMLBeans schema compiler is to generate typed java classes I am not sure how the "xsd:any" elements and attributes could be supported. Maybe an option to the schema compiler could be used to treat them as warnings instead of errors and skip over them.

      I could modify the schema myself to remove them but I would rather use the original spec rather than maintaining two seperate versions of the spec

      Attachments

        1. antask.patch
          3 kB
          Aaron Anderson

        Activity

          People

            kkrouse@bea.com Kevin Krouse
            aaronanderson Aaron Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: