Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your question doesn't show enough information to tell a precisely correct answer, but this will probably solve your problem.&nbsp;</p> <p>You probably have some code like this:</p> <pre><code>&lt;xs:element name="foobar" type="enumType"/&gt; &lt;xs:simpleType name="enumType"&gt; &lt;xs:restriction base="xs:integer"&gt; &lt;xs:enumeration value="1"/&gt; &lt;xs:enumeration value="1011"/&gt; &lt;xs:enumeration value="1032"/&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; </code></pre> <p>This piece of schema defines an element <code>&lt;foobar&gt;</code> and a simple type <code>enumType</code> that is the content type of the <code>&lt;foobar&gt;</code> element. So, you asked:</p> <blockquote> <p>How can I tell the XSD that any integer value is ok, and that there is no minimal or maximal matches on the XML file for this enumeration?</p> </blockquote> <p>You don't need to enumerate separately all the valid values for <code>&lt;foobar&gt;</code> like you have to do with DTD. Instead you can just use the <a href="http://www.w3.org/TR/xmlschema-2/" rel="nofollow noreferrer">predefined types</a> of XML Schema in the <code>type</code> attribute. </p> <p>Here is an example code that defines an element <code>&lt;foobar&gt;</code> and allows it to contain any integer.</p> <pre><code>&lt;xs:element name="foobar" type="xs:integer"/&gt; </code></pre> <p>If I misinterpreted your question, please leave a comment and define your problem more closely. Also revealing more of your schema would be helpful. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload