Site Tools


Hotfix release available: 2026-07-14c "Mort". upgrade now! [57.3] (what's this?)
Hotfix release available: 2026-07-14b "Mort". upgrade now! [57.2] (what's this?)
Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:xml_schema_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:xml_schema_cheat_sheet [2026/11/03 12:24]
216.73.216.223 old revision restored (2026/11/02 20:10)
notes:xml_schema_cheat_sheet [2026/11/03 17:24] (current)
43.131.51.248 old revision restored (2026/08/12 12:40)
Line 190: Line 190:
 <xs:element name="navn" substitutionGroup="name"/> <xs:element name="navn" substitutionGroup="name"/>
 </code> Substitution can be blocked with <code><xs:element name="name" type="xs:string" block="substitution"/></code> </code> Substitution can be blocked with <code><xs:element name="name" type="xs:string" block="substitution"/></code>
- 
  
 ==== Data Types ==== ==== Data Types ====
Line 200: Line 199:
     * xs:token - No CR, LF or TAB characters are allowed, no leading or trailing spaces are allowed, no sequences of more than one space is allowed     * xs:token - No CR, LF or TAB characters are allowed, no leading or trailing spaces are allowed, no sequences of more than one space is allowed
  
-  * There are many other types derived from string e.g. NMTOKEN, QName, ID, IDREF.+  * There are many other types derived from string e.g. NMTOKEN, QName, ID, IDREF. The following restrictions can be used with string types 
 +    * enumeration 
 +    * length 
 +    * maxLength 
 +    * minLength 
 +    * pattern (NMTOKENS, IDREFS, and ENTITIES cannot use this constraint) 
 +    * whiteSpace
  
 === Date Data Types === === Date Data Types ===
Line 226: Line 231:
 |gYearMonth |Defines a part of a date - the year and month (YYYY-MM)| |gYearMonth |Defines a part of a date - the year and month (YYYY-MM)|
 |time |Defines a time value ("hh:mm:ss") | |time |Defines a time value ("hh:mm:ss") |
 +
 +  * The following restrictions  can be used with Date data types:
 +    * enumeration
 +    * maxExclusive
 +    * maxInclusive
 +    * minExclusive
 +    * minInclusive
 +    * pattern
 +    * whiteSpace
  
 === Numeric Data types === === Numeric Data types ===
- 
-  * The xs:decimal data type specifies a positive or negative numeric value (with fractional part). 
- 
-  * The xs:integer data type specifies a positive or negative integer. 
- 
-  * These are all the numeric types, which all derive from the decimal type. 
- 
-^Name  ^Description^ 
-|byte |A signed 8-bit integer| 
-|decimal |A decimal value| 
-|int |A signed 32-bit integer| 
-|integer |An integer value| 
-|long |A signed 64-bit integer| 
-|negativeInteger |An integer containing only negative values ( .., -2, -1.)| 
-|nonNegativeInteger |An integer containing only non-negative values (0, 1, 2, ..)| 
-|nonPositiveInteger |An integer containing only non-positive values (.., -2, -1, 0)| 
-|positiveInteger |An integer containing only positive values (1, 2, ..)| 
-|short |A signed 16-bit integer| 
-|unsignedLong |An unsigned 64-bit integer| 
-|unsignedInt |An unsigned 32-bit integer| 
-|unsignedShort |An unsigned 16-bit integer| 
-|unsignedByte |An unsigned 8-bit integer| 
  
 === Other Data Types === === Other Data Types ===
  
-  * xs:boolean is a booleantype which must be true or false 
-  * xs:base64Binary and xs:hexBinary specify base-46 and hexadecimal encoded binary data respectively 
-  * xs:anyURI can be used for any URL or URN. 
-  * There are also xs:double and xs:float data types. 
notes/xml_schema_cheat_sheet.1793737474.txt.gz · Last modified: 2026/11/03 12:24 by 216.73.216.223