ebook img

XML Schema Essentials PDF

2 Pages·2002·0.038 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview XML Schema Essentials

integer Integer or whole numbers - Sign omitted, "+" is assumed. Example: -1, 0, 7 XML Types 12678967543233, +100000. Name XML Names long 9223372036854775807 to -9223372036854775808. Sign omitted, "+" NCName XML "non-colonized" Names. assumed. XML Schema - Data Types Example: -1, 0, 12678967543233, +100000. NOTATION NOTATION type Quick Reference negativeInteger Infinite set {...,-2,-1}. QName XML qualified names Example: -1, -12678967543233, -100000. Following attribute types should only be used in attribute nonNegativeInteger Infinite set {0, 1, 2, ...}. Sign omitted, "+" assumed, leading declaration for compatiblity reasons: ver 9/01 zeroes are prohibited. ENTITIES ENTITIES attribute type Example: 1, 0, 12678967543233, +100000. © 2001 D VInt Productions ENTITY ENTITY attribute type http://www.xml.dvint.com nonPositiveInteger Infinite set {...,-2,-1,0}. Example: -1, 0, -126733, -100000. ID ID attribute type positiveInteger Infinite set {1, 2, ...}. Optional "+" sign, leading zeroes are pro- 1 Namespaces hibited. Example: 1, 12678967543233, +100000. IDREF IDREF attribute type • http://www.w3.org/2001/XMLSchema short 32767 to -32768. Sign omitted, "+" assumed. IDREFS IDREFS attribute type • http://www.w3.org/2001/XMLSchema-datatypes Example: -1, 0, 12678, +10000. NMTOKEN NMTOKEN attribute type 2 Logic Types unsignedByte 0 to 255. a finite-length leading zeroes prohibited. NMTOKENS NMTOKENS attribute type Example: 0, 126, 100. boolean binary-valued logic legal literals {true, false, 1, 0} 8 Simple Data Type Declaration unsignedInt 0 to 4294967295 leading zeroes are prohibited. Example: 0, 3 Binary Data Types 1267896754, 100000. <simpleType id = ID base64Binary Base64-encoded arbitrary binary data. unsignedLong 0 to 18446744073709551615. final = (#all | (list | union | restriction)) name = NCName> hexBinary Arbitrary hex-encoded binary data. Example, "0FB7" is a hex encoding Example: 0, 12678967543233, 100000. Content: ( annotation ?, ( restriction | list | union )) </simpleType> for 16-bit int 4023 (binary 111110110111). unsignedShort 0 to 65535 leading zeroes are prohibited. Example: 0, 12678, 10000. <restriction id = ID 4 Text types base = QName> 6 Date Time Types anyURI A Uniform Resource Identifier Reference (URI). Can be absolute or rela- Content: ( annotation ?, ( simpleType ?, ( minExclusive | minInclusive | tive, and may have an optional fragment identifier date Calendar date. Example, May the 31st, 1999 is: 1999-05-31. maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | language natural language identifiers [RFC 1766] Example: en, fr dateTime Specific instant of time. ISO 8601 extended format CCYY-MM- maxLength | enumeration | whiteSpace | pattern )*)) </restriction> normalizedString White space normalized strings DDThh:mm:ss. Example, to indicate 1:20 pm on May the 31st, 1999 for Eastern <list id = ID Standard Time which is 5 hours behind Coordinated Universal Time (UTC): 1999-05- itemType = QName> string Character strings in XML 31T13:20:00-05:00. Content: ( annotation ?, ( simpleType ?)) </list> token Tokenized strings. duration A duration of time. ISO 8601 extended format <union id = ID 5 Number Types PnYn MnDTnH nMn S. Example, to indicate duration of 1 year, 2 months, 3 days, 10 memberTypes = List of QName> hours, and 30 minutes: P1Y2M3DT10H30M. One could also indicate a duration of Content: ( annotation ?, ( simpleType *)) </union> byte 127 to-128. Sign is omitted, "+" assumed. minus 120 days as: -P120D. Example: -1, 0, 126, +100. gDay Gregorian day, a day such as the 5th of the month. decimal Arbitrary precision decimal numbers. Sign omitted, "+" is assumed. Lead- gMonth Gregorian month. Example: May is 05. ing and trailing zeroes are optional. If the fractional part is zero, the period and fol- lowing zero(es) can be omitted. gMonthDay Gregorian specific day in a month. Example: Feb 5 is 02-05. double Double-precision 64-bit floating point type - legal literals {0, -0, INF, -INF and NaN} Example, -1E4, 12.78e-2, 12 and INF gYear Gregorian calendar year. Example, year 1999, write: 1999. float 32-bit floating point type - legal literals {0, -0, INF, -INF and NaN} Example, - gYearMonth Specific gregorian month and year. ©2001 D Vint Productions 1E4, 1267.43233E12, 12.78e-2, 12 and INF Example, May 1999, write: 1999-05. [email protected] int 2147483647 to -2147483648. an optional sign followed by a finite-length time An instant of time that recurs every day. Example, 1:20 pm for Eastern Stan- http://www.xml.dvint.com sequence of decimal digits (#x30-#x39). If the sign is omitted, "+" is assumed. Exam- dard Time which is 5 hours behind Coordinated Universal Time (UTC), write: ple: -1, 0, 126789675, +100000. 13:20:00-05:00. Constraining Facets 9 Regular Expressions for Patterns < < fv lmeiCxanieolnugdnLet thee= = nn b gtni:dot oh( o=an l enN idIanDe n=og ta:aI DtftiaivolesnIe?n)t e<g/leern >gth> < < vfm/CimxaaoelauxndxeEt Ee =x=xn c bctal:uol un(sosayilvieSnveaniem no >i ptd:a l eft=aiTo lIsnyDep?e) > Data Type length minLength maxLength pattern enumeration whiteSpace maxInclusive maxEclusive minExclusive minInclusive totalDigits fractionDigits SS\ppn ee cc \ii aa| ll.n -CeC ^whh ?laain *rre aa+cc {tt e}e r(r s )S [n e]eqeudeinncge tso be esca\pWed wnitoht XaM ‘L\’ Letter or Digit charac- fixed = boolean : false <minExclusive id = ID \r return ters decimal ? ? ? ? ? ? ? ? ? value = nonNegativeInteger > fixed = boolean : false \t tab \p{IsBasicLatin} block escape double ? ? ? ? ? ? ? identifying ASCII characters, sim- Content: (annotation?) </minLength> value = anySimpleType> . (dot) all characters except newline duration ? ? ? ? ? ? ? ilar IsGreek, IsHebrew, IsThai for Content: (annotation?) and return <maxLength id = ID these ranges of Unicode blocks ENTITIES ? ? ? ? ? fixed = boolean : false </minExclusive> \s space characters (space, tab, \p{L} all Letters ENTITY ? ? ? ? ? ? newline, return) value = nonNegativeInteger > <minInclusive id = ID float ? ? ? ? ? ? ? \p{M} all Marks Content: (annotation?) </maxLength> fixed = boolean : false \S non-Space characters gDay ? ? ? ? ? ? ? \p{N} all Numbers value = anySimpleType> \i initial XML name characters (let- <pattern id = ID Content: (annotation?) gMonth ? ? ? ? ? ? ? ter _ ;) \p{P} all Punctuation value = anySimpleType </minInclusive> gMonthDay ? ? ? ? ? ? ? \I not initial XML name characters \p{Z} all Separators Content: (annotation?) </pattern> gYear ? ? ? ? ? ? ? \p{S} all Symbols \c XML NameChar characters <totalDigits id = ID <enumeration id = ID gYearMonth ? ? ? ? ? ? ? \p{C} all Others. Additional modifying fixed = boolean : false \C not XML NameChar characters value = anySimpleType > hexBinary ? ? ? ? ? ? values like Lu = uppercase, value = positiveInteger > \d decimal digits Ll = lowercase, Nd = decimal Content: (annotation?) ID ? ? ? ? ? ? Content: (annotation?) \D not decimal digits digit, Sm = math symbols, </enumeration> </totalDigits> IDREF ? ? ? ? ? ? \w XML Letter or Digit characters Sc = currency <whiteSpace id = ID IDREFS ? ? ? ? ? \P{} not the block or category, <fractionDigits id = ID fixed = boolean : false int ? ? ? ? ? ? ? ? ? ? \P{IsGreek} = not Greek block fixed = boolean : false value = (collapse | preserve | replace)> integer ? ? ? ? ? ? ? ? ? ? value = nonNegativeInteger > Content: (annotation?) language ? ? ? ? ? ? Character References Content: (annotation?) </whiteSpace> &#x4E; or &#99; for hex or decimal XML character references long ? ? ? ? ? ? ? ? ? ? </fractionDigits> <maxInclusive id = ID Name ? ? ? ? ? ? Repetition Operators fixed = boolean : false NCName ? ? ? ? ? ? * = 0 or more, ? 0 or 1, + 1 or more value = anySimpleType> negativeInteger ? ? ? ? ? ? ? ? ? ? Content: (annotation?) NMTOKEN ? ? ? ? ? ? Interval Operators </maxInclusive> {x,y} range x to y, {x,} at least x, {x} exactly x, i.e. {4,8} 4 to 8 NMTOKENS ? ? ? ? ? nonNegativeInteger ? ? ? ? ? ? ? ? ? ? Range Expressions nonPositiveInteger ? ? ? ? ? ? ? ? ? ? [a-zA-Z] = character a to z upper and lower case [0-9] = digits 0 to 9 normalizedString ? ? ? ? ? ? Data Type length minLength maxLength pattern enumeration whiteSpace maxInclusive maxEclusive minExclusive minInclusive totalDigits fractionDigits sQpNhoONosTarittmAivTeeIIOntNeger ?? ?? ???? ???? ???? ???? ?? ?? ?? ?? ?? ?? string ? ? ? ? ? ? anyURI ? ? ? ? ? ? time ? ? ? ? ? ? ? base64Binary ? ? ? ? ? ? token ? ? ? ? ? ? boolean ? ? unsignedByte ? ? ? ? ? ? ? ? ? ? byte ? ? ? ? ? ? ? ? ? ? unsignedInt ? ? ? ? ? ? ? ? ? ? ©2001 D Vint Productions date ? ? ? ? ? ? ? unsignedLong ? ? ? ? ? ? ? ? ? ? [email protected] dateTime ? ? ? ? ? ? ? http://www.xml.dvint.com unsignedShort ? ? ? ? ? ? ? ? ? ?

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.