Difference between revisions of "Server Protocol: Types"
Jump to navigation
Jump to search
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | This article lists extended type information that is returned by the [[Server Protocol]]. | |
+ | |||
+ | ==XDM Meta Data== | ||
+ | |||
+ | In most cases, the XDM meta data is nothing else than the [[#Type IDs|Type ID]]. There are three exceptions: document-node(), attribute() and xs:QName items are followed by an additional <code>{URI}</code> string. | ||
+ | |||
+ | ==Type IDs== | ||
+ | |||
+ | The following table lists the type IDs that are returned by the server. Currently, all node kinds are of type {{Code|xs:untypedAtomic}}: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
− | ! align='right | + | ! align='right' | Type ID |
− | ! | + | ! Node Kind/Item Type |
− | ! | + | ! Type |
|- | |- | ||
| 7 | | 7 | ||
− | | ''function | + | | [[XQuery 3.0#Function Items|Function item]] |
− | + | | ''function'' | |
|- | |- | ||
| 8 | | 8 | ||
− | | {{ | + | | {{Code|node()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 9 | | 9 | ||
− | | {{ | + | | {{Code|text()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 10 | | 10 | ||
− | | {{ | + | | {{Code|processing-instruction()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 11 | | 11 | ||
− | | {{ | + | | {{Code|element()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 12 | | 12 | ||
− | | {{ | + | | {{Code|document-node()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 13 | | 13 | ||
− | | {{ | + | | {{Code|document-node(element())}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 14 | | 14 | ||
− | | {{ | + | | {{Code|attribute()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 15 | | 15 | ||
− | | {{ | + | | {{Code|comment()}} |
− | | node | + | | ''node'' |
|- | |- | ||
| 32 | | 32 | ||
− | | {{ | + | | {{Code|item()}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 33 | | 33 | ||
− | | {{ | + | | {{Code|xs:untyped}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 34 | | 34 | ||
− | | {{ | + | | {{Code|xs:anyType}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 35 | | 35 | ||
− | | {{ | + | | {{Code|xs:anySimpleType}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 36 | | 36 | ||
− | | {{ | + | | {{Code|xs:anyAtomicType}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 37 | | 37 | ||
− | | {{ | + | | {{Code|xs:untypedAtomic}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 38 | | 38 | ||
− | | {{ | + | | {{Code|xs:string}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 39 | | 39 | ||
− | | {{ | + | | {{Code|xs:normalizedString}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 40 | | 40 | ||
− | | {{ | + | | {{Code|xs:token}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 41 | | 41 | ||
− | | {{ | + | | {{Code|xs:language}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 42 | | 42 | ||
− | | {{ | + | | {{Code|xs:NMTOKEN}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 43 | | 43 | ||
− | | {{ | + | | {{Code|xs:Name}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 44 | | 44 | ||
− | | {{ | + | | {{Code|xs:NCName}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 45 | | 45 | ||
− | | {{ | + | | {{Code|xs:ID}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 46 | | 46 | ||
− | | {{ | + | | {{Code|xs:IDREF}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 47 | | 47 | ||
− | | {{ | + | | {{Code|xs:ENTITY}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 48 | | 48 | ||
− | | {{ | + | | {{Code|xs:float}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 49 | | 49 | ||
− | | {{ | + | | {{Code|xs:double}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 50 | | 50 | ||
− | | {{ | + | | {{Code|xs:decimal}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 51 | | 51 | ||
− | | {{ | + | | {{Code|xs:precisionDecimal}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 52 | | 52 | ||
− | | {{ | + | | {{Code|xs:integer}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 53 | | 53 | ||
− | | {{ | + | | {{Code|xs:nonPositiveInteger}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 54 | | 54 | ||
− | | {{ | + | | {{Code|xs:negativeInteger}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 55 | | 55 | ||
− | | {{ | + | | {{Code|xs:long}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 56 | | 56 | ||
− | | {{ | + | | {{Code|xs:int}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 57 | | 57 | ||
− | | {{ | + | | {{Code|xs:short}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 58 | | 58 | ||
− | | {{ | + | | {{Code|xs:byte}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 59 | | 59 | ||
− | | {{ | + | | {{Code|xs:nonNegativeInteger}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 60 | | 60 | ||
− | | {{ | + | | {{Code|xs:unsignedLong}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 61 | | 61 | ||
− | | {{ | + | | {{Code|xs:unsignedInt}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 62 | | 62 | ||
− | | {{ | + | | {{Code|xs:unsignedShort}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 63 | | 63 | ||
− | | {{ | + | | {{Code|xs:unsignedByte}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 64 | | 64 | ||
− | | {{ | + | | {{Code|xs:positiveInteger}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 65 | | 65 | ||
− | | {{ | + | | {{Code|xs:duration}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 66 | | 66 | ||
− | | {{ | + | | {{Code|xs:yearMonthDuration}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 67 | | 67 | ||
− | | {{ | + | | {{Code|xs:dayTimeDuration}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 68 | | 68 | ||
− | | {{ | + | | {{Code|xs:dateTime}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 69 | | 69 | ||
− | | {{ | + | | {{Code|xs:dateTimeStamp}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 70 | | 70 | ||
− | | {{ | + | | {{Code|xs:date}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 71 | | 71 | ||
− | | {{ | + | | {{Code|xs:time}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 72 | | 72 | ||
− | | {{ | + | | {{Code|xs:gYearMonth}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 73 | | 73 | ||
− | | {{ | + | | {{Code|xs:gYear}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 74 | | 74 | ||
− | | {{ | + | | {{Code|xs:gMonthDay}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 75 | | 75 | ||
− | | {{ | + | | {{Code|xs:gDay}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 76 | | 76 | ||
− | | {{ | + | | {{Code|xs:gMonth}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 77 | | 77 | ||
− | | {{ | + | | {{Code|xs:boolean}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 78 | | 78 | ||
− | | {{ | + | | {{Code|basex:binary}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 79 | | 79 | ||
− | | {{ | + | | {{Code|xs:base64Binary}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 80 | | 80 | ||
− | | {{ | + | | {{Code|xs:hexBinary}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 81 | | 81 | ||
− | | {{ | + | | {{Code|xs:anyURI}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 82 | | 82 | ||
− | | {{ | + | | {{Code|xs:QName}} |
− | | atomic value | + | | ''atomic value'' |
|- | |- | ||
| 83 | | 83 | ||
− | | {{ | + | | {{Code|xs:NOTATION}} |
− | + | | ''atomic value'' | |
− | |||
− | |||
− | |||
− | | atomic value | ||
|} | |} |
Revision as of 13:01, 17 November 2015
This article lists extended type information that is returned by the Server Protocol.
XDM Meta Data
In most cases, the XDM meta data is nothing else than the Type ID. There are three exceptions: document-node(), attribute() and xs:QName items are followed by an additional {URI}
string.
Type IDs
The following table lists the type IDs that are returned by the server. Currently, all node kinds are of type xs:untypedAtomic
:
Type ID | Node Kind/Item Type | Type |
---|---|---|
7 | Function item | function |
8 | node()
|
node |
9 | text()
|
node |
10 | processing-instruction()
|
node |
11 | element()
|
node |
12 | document-node()
|
node |
13 | document-node(element())
|
node |
14 | attribute()
|
node |
15 | comment()
|
node |
32 | item()
|
atomic value |
33 | xs:untyped
|
atomic value |
34 | xs:anyType
|
atomic value |
35 | xs:anySimpleType
|
atomic value |
36 | xs:anyAtomicType
|
atomic value |
37 | xs:untypedAtomic
|
atomic value |
38 | xs:string
|
atomic value |
39 | xs:normalizedString
|
atomic value |
40 | xs:token
|
atomic value |
41 | xs:language
|
atomic value |
42 | xs:NMTOKEN
|
atomic value |
43 | xs:Name
|
atomic value |
44 | xs:NCName
|
atomic value |
45 | xs:ID
|
atomic value |
46 | xs:IDREF
|
atomic value |
47 | xs:ENTITY
|
atomic value |
48 | xs:float
|
atomic value |
49 | xs:double
|
atomic value |
50 | xs:decimal
|
atomic value |
51 | xs:precisionDecimal
|
atomic value |
52 | xs:integer
|
atomic value |
53 | xs:nonPositiveInteger
|
atomic value |
54 | xs:negativeInteger
|
atomic value |
55 | xs:long
|
atomic value |
56 | xs:int
|
atomic value |
57 | xs:short
|
atomic value |
58 | xs:byte
|
atomic value |
59 | xs:nonNegativeInteger
|
atomic value |
60 | xs:unsignedLong
|
atomic value |
61 | xs:unsignedInt
|
atomic value |
62 | xs:unsignedShort
|
atomic value |
63 | xs:unsignedByte
|
atomic value |
64 | xs:positiveInteger
|
atomic value |
65 | xs:duration
|
atomic value |
66 | xs:yearMonthDuration
|
atomic value |
67 | xs:dayTimeDuration
|
atomic value |
68 | xs:dateTime
|
atomic value |
69 | xs:dateTimeStamp
|
atomic value |
70 | xs:date
|
atomic value |
71 | xs:time
|
atomic value |
72 | xs:gYearMonth
|
atomic value |
73 | xs:gYear
|
atomic value |
74 | xs:gMonthDay
|
atomic value |
75 | xs:gDay
|
atomic value |
76 | xs:gMonth
|
atomic value |
77 | xs:boolean
|
atomic value |
78 | basex:binary
|
atomic value |
79 | xs:base64Binary
|
atomic value |
80 | xs:hexBinary
|
atomic value |
81 | xs:anyURI
|
atomic value |
82 | xs:QName
|
atomic value |
83 | xs:NOTATION
|
atomic value |