castor
  1. castor
  2. CASTOR-1909

minOccurs attribute is allowed for top level elements.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.5
    • Fix Version/s: 1.1.1
    • Component/s: XML
    • Labels:
      None
    • Number of attachments :
      3

      Description

      Attached file passed to http://www.w3.org/2001/03/webdata/xsv results in:

      file:///usr/local/XSV/xsvlog/tmpbPYn1Guploaded:3:2: Invalid: top-level
      element may not have minOccurs

      1. patch.c1909.20070318.txt
        4 kB
        Werner Guttmann
      2. patch.c1909.20070318-002.txt
        7 kB
        Werner Guttmann
      3. test.xsd
        0.3 kB
        Stoil Valchkov

        Activity

        Hide
        Werner Guttmann added a comment -

        Patch for review. It looks like, though, that there's plenty of incorrect XML schemas in the test suite that have minOccurs attribute for global elements ... .,

        Show
        Werner Guttmann added a comment - Patch for review. It looks like, though, that there's plenty of incorrect XML schemas in the test suite that have minOccurs attribute for global elements ... .,
        Hide
        Werner Guttmann added a comment -

        Final patch for review.

        Show
        Werner Guttmann added a comment - Final patch for review.
        Hide
        Werner Guttmann added a comment -

        Just as a side node: what surprises me, though, is the fact that the code generator does not use the SchemaReader internally to parse a set of XML schema files. Personally, I think it should ....

        Show
        Werner Guttmann added a comment - Just as a side node: what surprises me, though, is the fact that the code generator does not use the SchemaReader internally to parse a set of XML schema files. Personally, I think it should ....

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Stoil Valchkov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 45 minutes
              45m