To join the group, log into your Slideshare account if you have one.
Else get a free account now...it takes less than a minute.

Xml Schema Data Types

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Xml Schema Data Types - Presentation Transcript

    1. integer 7 XML Types Integer or whole numbers - Sign omitted, \"+\" is assumed. Example: -1, 0, 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 negativeInteger Infinite set {...,-2,-1}. QName XML qualified names Quick Reference Example: -1, -12678967543233, -100000. Following attribute types should only be used in attribute declaration for compatiblity reasons: nonNegativeInteger Infinite set {0, 1, 2, ...}. Sign omitted, \"+\" assumed, leading zeroes are prohibited. ENTITIES ENTITIES attribute type ver 9/01 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- IDREF IDREF attribute type hibited. Example: 1, 12678967543233, +100000. 1 Namespaces IDREFS • http://www.w3.org/2001/XMLSchema IDREFS attribute type short 32767 to -32768. Sign omitted, \"+\" assumed. • 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 S im p l e D a t a T y p e D e c l a r a t i o n unsignedInt 0 to 4294967295 leading zeroes are prohibited. Example: 0, 3 B inary Data Types <simpleType id = ID 1267896754, 100000. final = (#all | (list | union | restriction)) base64Binary Base64-encoded arbitrary binary data. unsignedLong 0 to 18446744073709551615. name = NCName> Example: 0, 12678967543233, 100000. hexBinary Arbitrary hex-encoded binary data. Example, \"0FB7\" is a hex encoding Content: ( annotation ?, ( restriction | list | union )) </simpleType> for 16-bit int 4023 (binary 111110110111). unsignedShort 0 to 65535 leading zeroes are prohibited. <restriction id = ID Example: 0, 12678, 10000. 4 Text types base = QName> 6 Date Time Types Content: ( annotation ?, ( simpleType ?, ( minExclusive | minInclusive | anyURI A Uniform Resource Identifier Reference (URI). Can be absolute or rela- tive, and may have an optional fragment identifier maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | date Calendar date. Example, May the 31st, 1999 is: 1999-05-31. maxLength | enumeration | whiteSpace | pattern )*)) </restriction> language natural language identifiers [RFC 1766] Example: en, fr dateTime Specific instant of time. ISO 8601 extended format CCYY-MM- <list id = ID DDThh:mm:ss. Example, to indicate 1:20 pm on May the 31st, 1999 for Eastern normalizedString White space normalized strings 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 <union id = ID A duration of time. ISO 8601 extended format PnYn MnDTnH nMn S. Example, to indicate duration of 1 year, 2 months, 3 days, 10 memberTypes = List of QName> 5 Number Types hours, and 30 minutes: P1Y2M3DT10H30M. One could also indicate a duration of Content: ( annotation ?, ( simpleType *)) </union> minus 120 days as: -P120D. byte 127 to-128. Sign is omitted, \"+\" assumed. 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- gMonthDay Gregorian specific day in a month. lowing zero(es) can be omitted. Example: Feb 5 is 02-05. double Double-precision 64-bit floating point type - legal literals {0, -0, INF, -INF gYear Gregorian calendar year. Example, year 1999, write: 1999. and NaN} Example, -1E4, 12.78e-2, 12 and INF gYearMonth Specific gregorian month and year. float 32-bit floating point type - legal literals {0, -0, INF, -INF and NaN} Example, - ©2001 D Vint Productions Example, May 1999, write: 1999-05. 1E4, 1267.43233E12, 12.78e-2, 12 and INF xmlhelp@ dvint.com tim e http://w w w .xm l.dvint.com An instant of time that recurs every day. Example, 1:20 pm for Eastern Stan- int 2147483647 to -2147483648. an optional sign followed by a finite-length dard Time which is 5 hours behind Coordinated Universal Time (UTC), write: sequence of decimal digits (#x30-#x39). If the sign is omitted, \"+\" is assumed. Exam- 13:20:00-05:00. ple: -1, 0, 126789675, +100000.
    2. Constraining Facets 9 Regular Expressions for Patterns <length id = ID <maxExclusive id = ID fra ctio n D ig its m ax In clu siv e m a x E c lu s iv e m in E xc lus iv e e n u m e ra tio n m in In c lu s iv e w h ite S p a c e S p e c i a l C h a r a c t e r s n e e d i n g t o b e e s c a p e d w i t h a ‘\\’ fixed = boolean : false fixed = boolean : false m in L en g th m a x L e ng th to talD ig its \\|.-^?*+{}()[] value = nonNegativeInteger > value = anySimpleType> Data Type p a tte rn le n g th Content: (annotation?) </length> Content: (annotation?) Special Character Sequences </maxExclusive> \\n \\W newline not XML Letter or Digit charac- <minLength id = ID ters fixed = boolean : false <minExclusive id = ID \\r return ? ? ? ? ? ? ? ? ? decimal \\p{IsBasicLatin} block escape value = nonNegativeInteger > fixed = boolean : false \\t tab ? ? ? ? ? ? ? double identifying ASCII characters, sim- Content: (annotation?) </minLength> value = anySimpleType> . (dot) all characters except newline ? ? ? ? ? ? ? ilar IsGreek, IsHebrew, IsThai for duration Content: (annotation?) and return <maxLength id = ID these ranges of Unicode blocks ? ? ? ? ? ENTITIES </minExclusive> \\s space characters (space, tab, fixed = boolean : false \\p{L} all Letters ? ? ? ? ? ? ENTITY newline, return) value = nonNegativeInteger > <minInclusive id = ID \\p{M} all Marks ? ? ? ? ? ? ? float \\S non-Space characters Content: (annotation?) </maxLength> fixed = boolean : false \\p{N} all Numbers ? ? ? ? ? ? ? gDay value = anySimpleType> \\i initial XML name characters (let- <pattern id = ID \\p{P} all Punctuation ? ? ? ? ? ? ? gMonth ter _ ;) Content: (annotation?) value = anySimpleType \\p{Z} all Separators ? ? ? ? ? ? ? gMonthDay </minInclusive> \\I not initial XML name characters Content: (annotation?) </pattern> ? ? ? ? ? ? ? \\p{S} all Symbols gYear \\c XML NameChar characters <totalDigits id = ID <enumeration id = ID ? ? ? ? ? ? ? gYearMonth \\p{C} all Others. Additional modifying \\C not XML NameChar characters fixed = boolean : false value = anySimpleType > values like Lu = uppercase, ? ? ? ? ? ? hexBinary value = positiveInteger > \\d decimal digits Ll = lowercase, Nd = decimal Content: (annotation?) ? ? ? ? ? ? ID Content: (annotation?) digit, Sm = math symbols, \\D not decimal digits </enumeration> ? ? ? ? ? ? IDREF Sc = currency </totalDigits> \\w XML Letter or Digit characters ? ? ? ? ? <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?) Character References ? ? ? ? ? ? language Content: (annotation?) </whiteSpace> &#x4E; or &#99; for hex or decimal XML character references ? ? ? ? ? ? ? ? ? ? long </fractionDigits> ? ? ? ? ? ? <maxInclusive id = ID Name Repetition Operators fixed = boolean : false ? ? ? ? ? ? * = 0 or more, ? 0 or 1, + 1 or more NCName value = anySimpleType> ? ? ? ? ? ? ? ? ? ? negativeInteger Content: (annotation?) Interval Operators ? ? ? ? ? ? NMTOKEN {x,y} range x to y, {x,} at least x, {x} exactly x, i.e. {4,8} 4 to 8 </maxInclusive> ? ? ? ? ? NMTOKENS ? ? ? ? ? ? ? ? ? ? nonNegativeInteger Range Expressions [a-zA-Z] = character a to z upper and lower case ? ? ? ? ? ? ? ? ? ? nonPositiveInteger [0-9] = digits 0 to 9 ? ? ? ? ? ? normalizedString fra c tio n D ig its m a x In c lu s iv e m a xE c lu siv e m in E x c lu s iv e e n u m e ra tio n m in In c lus iv e w h ite S p a c e ? ? ? ? ? ? NOTATION m in L e n g th m a xL e n g th to ta lD ig its Data Type ? ? ? ? ? ? ? ? ? ? positiveInteger pa tte rn le n gth ? ? ? ? ? ? QName ? ? ? ? ? ? ? ? ? ? short ? ? ? ? ? ? string ? ? ? ? ? ? anyURI ? ? ? ? ? ? ? time ? ? ? ? ? ? base64Binary ? ? ? ? ? ? token ? ? boolean ? ? ? ? ? ? ? ? ? ? unsignedByte ? ? ? ? ? ? ? ? ? ? byte ©2001 D Vint Productions ? ? ? ? ? ? ? ? ? ? unsignedInt ? ? ? ? ? ? ? date xmlhelp@ dvint.com ? ? ? ? ? ? ? ? ? ? unsignedLong ? ? ? ? ? ? ? dateTime http://w w w .xm l.dvint.com ? ? ? ? ? ? ? ? ? ? unsignedShort
    SlideShare Zeitgeist 2009

    + pradeep sripadapradeep sripada Nominate

    custom

    547 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 547
      • 547 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 4
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories