Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML parse error for the base facet has a greater min length ... #396

Closed
vivek3011 opened this issue Mar 21, 2024 · 1 comment
Closed

XML parse error for the base facet has a greater min length ... #396

vivek3011 opened this issue Mar 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vivek3011
Copy link

vivek3011 commented Mar 21, 2024

Screenshot_2024-03-21-18-10-49-19_6012fa4d4ddec268fc5c7112cbb265e7
This is the part of my code :

<element name="add_list_of _strings" minOccurs="0"> 
                              <simpleType>
                                 <restriction>
                                    <simpleType>
                                       <list>
                                          <simpleType>
                                             <restriction base="string">
                                             <minLength value="5"/>
                                             <maxLength value="6"/>
                                          </restriction>
                                          </simpleType>
                                       </list>
                                    </simpleType>
                                    <minLength value="1"/>
                                    <maxLength value="6"/>
                                 </restriction>
                              </simpleType>
                           </element>

The error:
XMLSchemaParseError: base facet has a greater min length (5):

Schema component:

I am not able to parse the this xsd file because I got an error over this element . I don't where the error is it in element or in XMLschema library..... I want to where it went wrong and if it is wrong in the element let me what it is I should I correct this and reason for the error and with the valid proof
Please help me with this error and give me detail information about the error

@brunato brunato added the bug Something isn't working label Mar 24, 2024
brunato added a commit that referenced this issue Mar 25, 2024
  - Replace base_type with item_type in XsdList: remove ambiguity
    when restrict a list type that has constraints (facets)
  - This fix issue #396
@brunato
Copy link
Member

brunato commented Mar 26, 2024

Hi,

I have fixed this bug in minor release v3.2.

The fix has required a small refactoring of the class used for representing <xs:list> definitions (XsdList). It wasn't the only solution for this, but it's the simplest and it didn't break any test, including W3C tests.

thank you for reporting the problem

@brunato brunato closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants