Apideo security token XSL Schema

Table of Contents

top

Schema Document Properties

Target Namespace None
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations have no namespace.
  • By default, local attribute declarations have no namespace.

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xs:schema>
...
</xs:schema>
top

Global Declarations

Element: account

Name account
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The account tag is the root of the XML message. It contains your Apideo key, as an attribute. In the account tag, you can put one default tag and several token tags. The default tag contains the default rule that will be applied if no tokens are passed by the user. Each token tag contains the rules to apply for a token.
XML Instance Representation
<account
apideoKey="apideoKeyType [1]">
<default> defaultTokenType </default> [0..1] ?
<token> ... </token> [1..*]
</account>
Schema Component Representation
<xs:element name="account">
<xs:complexType>
<xs:sequence>
<xs:element name="default" type="defaultTokenType" maxOccurs="1" minOccurs="0"/>
<xs:element ref="token" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="apideoKey" type="apideoKeyType" use="required"/>
</xs:complexType>
</xs:element>
top

Element: defaultroom

Name defaultroom
Type Room
Nillable no
Abstract no
Documentation The "defaultroom" tag contains the list of rules to be applied by default, if no rules are found for a specific room. First, Apideo will check the "room" tags, and if no room matches the room joined, then the "defaultroom" tag applies.
XML Instance Representation
<defaultroom
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"
access="accessType [1]">
<userlist> ... </userlist> [0..1]
<userprofile> ... </userprofile> [0..1]
<sendEvents> ... </sendEvents> [0..1]
<listeners> ... </listeners> [0..1]
<startCameras> ... </startCameras> [0..1]
<viewStreams> ... </viewStreams> [0..1]
</defaultroom>
Schema Component Representation
<xs:element name="defaultroom" type="Room"/>
top

Element: listener

Name listener
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The "listener" tag is used to decide whether a user can listen to a kind of events or not. The "category" attribute contains the listener name that is allowed or denied. Alternatively, you can use the "categoryregex" attribute to pass a regex in parameter. The "access" attribute decides whether the rule will allow or deny access.
XML Instance Representation
<listener
categoryregex="xs:string [0..1]"
category="xs:NMTOKEN [0..1]"
access="accessType [1]"/>
Schema Component Representation
<xs:element name="listener">
<xs:complexType>
<xs:attribute name="categoryregex" type="xs:string" use="optional"/>
<xs:attribute name="category" type="xs:NMTOKEN" use="optional"/>
<xs:attribute name="access" type="accessType" use="required"/>
</xs:complexType>
</xs:element>
top

Element: listeners

Name listeners
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The listeners tag is used to decide whether the user is by default allowed to listen to events or not. It has a "defaultAccess" attribute that can be either "allow" or "reject". The default behaviour can be overloaded by individual "listener" tags. The "listeners" tag can contain any number of "listener" tag. The "listener" tags are applied from top to bottom. Apideo will stop going through tags after one tag is matched, so the order is important. Here is an example: <listeners defaultAccess="reject"> <listener regex="event_[.]*" access="allow" /> <listener name="event_42" access="reject" /> </listeners> In the example above, the second "listener" rule will never be applied, because the first regex will always be matched first. So this code will result in an access allowed: <pre> // Access will be allowed room.registerListener(myListener, "event_42") </pre> <p> However, access to the listener will be denied if you put the rules in the other way.</p> <listeners defaultAccess="reject"> <listener name="event_42" access="reject" /> <listener regex="event_[.]*" access="allow" /> </listeners>
XML Instance Representation
<listeners
defaultAccess="accessType [1]">
<listener> ... </listener> [0..*]
</listeners>
Schema Component Representation
<xs:element name="listeners">
<xs:complexType>
<xs:sequence>
<xs:element ref="listener" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="defaultAccess" type="accessType" use="required"/>
</xs:complexType>
</xs:element>
top

Element: room

Name room
Type Room
Nillable no
Abstract no
Documentation The "room" tag contains rules to be applied for a specific room or a set of rules. The "room" tag has a "name" attribute to tell the name of the room. Alternatively, you can use the "regex" attribute to use a regular expression that matches the name of the room. Finally, the "access" attribute can have 2 values: - "allow" to allow access to the room - "reject" to deny access to the room
XML Instance Representation
<room
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"
access="accessType [1]">
<userlist> ... </userlist> [0..1]
<userprofile> ... </userprofile> [0..1]
<sendEvents> ... </sendEvents> [0..1]
<listeners> ... </listeners> [0..1]
<startCameras> ... </startCameras> [0..1]
<viewStreams> ... </viewStreams> [0..1]
</room>
Schema Component Representation
<xs:element name="room" type="Room"/>
top

Element: sendEvent

Name sendEvent
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The "sendEvent" tag is used to decide whether a user can send a kind of events or not. The "category" attribute contains the listener name that is allowed or denied. Alternatively, you can use the "categoryregex" attribute to pass a regex in parameter. The "access" attribute decides whether the rule will allow or deny access. Finally, the "filter" attribute contains Javascript code that must be matched for the filter to be applied. In the Javascript code, you can access the object sent using the "obj" variable. Below is an example: <sendEvents defaultAccess="reject"> <sendEvent name="mylistener" filter="obj.type=='manager'" access="allow" /> </sendEvents> In this sample, by default, the user cannot send events. However, he can send events if the event listener is "mylistener" and if the object passed in parameter contains "type == 'manager'". <div class="apideogood"> So this code would be correct: <pre> room.sendEvent({type:'manager', text:'Hello!'},"mylistener")</pre> </div> <div class="apideoerror"> This code would be denied by Apideo: <pre> room.sendEvent({type:'administrator', text:'Hello!'},"mylistener")</pre> </div>
XML Instance Representation
<sendEvent
access="accessType [1]"
categoryregex="xs:string [0..1]"
filter="xs:string [0..1]"
category="xs:NMTOKEN [0..1]"/>
Schema Component Representation
<xs:element name="sendEvent">
<xs:complexType>
<xs:attribute name="access" type="accessType" use="required"/>
<xs:attribute name="categoryregex" type="xs:string" use="optional"/>
<xs:attribute name="filter" type="xs:string" use="optional"/>
<xs:attribute name="category" type="xs:NMTOKEN" use="optional"/>
</xs:complexType>
</xs:element>
top

Element: sendEvents

Name sendEvents
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The sendEvents tag is used to decide whether the user is by default allowed to send events or not. It has a "defaultAccess" attribute that can be either "allow" or "reject". The default behaviour can be overloaded by individual "sendEvent" tags. The "sendEvents" tag can contain any number of "sendEvent" tag. The "sendEvent" tags are applied from top to bottom. Apideo will stop going through tags after one tag is matched, so the order is important. Here is an example: <sendEvents defaultAccess="reject"> <sendEvent regex="event_[.]*" access="allow" /> <sendEvent name="event_42" access="reject" /> </sendEvents> In the example above, the second "sendEvent" rule will never be applied, because the first regex will always be matched first. So this code will result in an access allowed: <pre> // Access will be allowed room.sendEvent({}, "event_42") </pre> However, access will be denied if you put the rules in the other way. <sendEvents defaultAccess="reject"> <sendEvent name="event_42" access="reject" /> <sendEvent regex="event_[.]*" access="allow" /> </sendEvents>
XML Instance Representation
<sendEvents
defaultAccess="accessType [1]">
<sendEvent> ... </sendEvent> [0..*]
</sendEvents>
Schema Component Representation
<xs:element name="sendEvents">
<xs:complexType>
<xs:sequence>
<xs:element ref="sendEvent" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="defaultAccess" type="accessType" use="required"/>
</xs:complexType>
</xs:element>
top

Element: startCamera

Name startCamera
Type StreamType
Nillable no
Abstract no
Documentation The "startCamera" tag is used to decide whether a user can send a stream or not. The "name" attribute contains the name of the stream that is allowed or denied. Alternatively, you can use the "regex" attribute to pass a regex in parameter. The "access" attribute decides whether the rule will allow or deny access (can be "allow" or "reject").
XML Instance Representation
<startCamera
access="allow [1]"
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"/>
Schema Component Representation
<xs:element name="startCamera" type="StreamType"/>
top

Element: startCameras

Name startCameras
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The startCameras tag is used to decide whether the user is by default allowed to send a stream or not. It has a "defaultAccess" attribute that can be either "allow" or "reject". The default behaviour can be overloaded by individual "startCamera" tags. The startCameras" tag can contain any number of "startCamera" tag. The "startCamera" tags are applied from top to bottom. Apideo will stop going through tags after one tag is matched, so the order is important. Here is an example: <startCameras defaultAccess="reject"> <startCamera regex="stream_[.]*" access="allow" /> <startCamera name="stream_42" access="reject" /> </startCameras> In the example above, the second "startCamera" rule will never be applied, because the first regex will always be matched first. So this code will result in an access allowed: <pre> // Access will be denied room.startCamera("cameraDiv", "stream_42") </pre> However, access will be denied if you put the rules in the other way. <startCameras defaultAccess="reject"> <startCamera name="stream_42" access="reject" /> <startCamera regex="stream_[.]*" access="allow" /> </startCameras>
XML Instance Representation
<startCameras
defaultAccess="accessType [1]">
<startCamera> ... </startCamera> [0..*]
</startCameras>
Schema Component Representation
<xs:element name="startCameras">
<xs:complexType>
<xs:sequence>
<xs:element ref="startCamera" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="defaultAccess" type="accessType" use="required"/>
</xs:complexType>
</xs:element>
top

Element: token

Name token
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The <token> tag contains the security rules to be applied for one token. The <token> tag has 2 attributes: "name" (the name of the token) and "ttl" (the time to live, in seconds for the token). It is your responsibility to generate a token name. Please be sure to generate a token name random enough so it cannot be guessed easily.
XML Instance Representation
<token
ttl="xs:int [0..1]"
name="xs:NMTOKEN [1]">
<defaultRoom> Room </defaultRoom> [0..1]
<room> ... </room> [0..*]
</token>
Schema Component Representation
<xs:element name="token">
<xs:complexType>
<xs:sequence>
<xs:element name="defaultRoom" type="Room" maxOccurs="1" minOccurs="0"/>
<xs:element ref="room" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ttl" type="xs:int" use="optional"/>
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
</xs:complexType>
</xs:element>
top

Element: userlist

Name userlist
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The userlist tag is used to decide whether the user is by default allowed to view the list of users that are part of the room he is in. It has an "access" attribute that can be either "allow" or "reject". If access to the user list is rejected by the token, a call to the "forEachUser" method will return an error: // Triggers a security error: myroom.forEachUser(function(userId, userObj) { ... }); Finally, the userlist tag contains a "filter" attribute. You can only use this attribute if "access" is set to "allow". Using the filter, you can decide that your user will be able to see only a part of the users that are connected to the room. The filter is a one-line Javascript code that must matched the users profiles. In the Javascript code, you can access the user profiles using the "obj" variable. Below is an example: <userlist defaultAccess="accept" filter="obj.type=='manager'" /> In this sample; by default, the user cannot only see the users who have a profile with type=='manager'. <div class="apideogood"> So if another user connects with this profile, he will be visible to the first user: <pre> conn.joinRoom('myRoom', {type:'manager'});</pre> </div> <div class="apideoerror"> However, the user below would not be visible to the first user: <pre> room.joinRoom('myRoom', {type:'user'});</pre> </div>
XML Instance Representation
<userlist
access="accessType [1]"
filter="xs:string [0..1]"/>
Schema Component Representation
<xs:element name="userlist">
<xs:complexType>
<xs:attribute name="access" type="accessType" use="required"/>
<xs:attribute name="filter" type="xs:string"/>
</xs:complexType>
</xs:element>
top

Element: userprofile

Name userprofile
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The userprofile tag is used to decide whether the user is by default allowed to submit a user profile to the list of users that are part of the room he is in. It has an "access" attribute that can be either "allow" or "reject". If access to the user profile is rejected by the token, any call to "joinRoom" must pass "null" as the second argument: // The second parameter (the user profile) must be null if <userprofile access='reject'>: myroom.joinRoom('myroom', null, 'AJVFDSOISDLDSKLDSF'); Finally, the userprofile tag contains a "filter" attribute. You can only use this attribute if "access" is set to "allow". Using the filter, you can decide that your user will be able to submit a profile only if it respects a number of conditions. The filter is a one-line Javascript code that must matched the users profiles. In the Javascript code, you can access the user profiles using the "obj" variable. Below is an example: <userprofile defaultAccess="accept" filter="obj.type=='user'" /> In this sample, the user cannot only join the room if he sets his type to "user". <div class="apideogood"> So this will be ok: <pre> conn.joinRoom('myRoom', {type:'user'}, 'AJVFDSOISDLDSKLDSF');</pre> </div> <div class="apideoerror"> And this will be denied access: <pre> room.joinRoom('myRoom', {type:'manager'}, 'AJVFDSOISDLDSKLDSF');</pre> </div>
XML Instance Representation
<userprofile
access="accessType [1]"
filter="xs:string [0..1]"/>
Schema Component Representation
<xs:element name="userprofile">
<xs:complexType>
<xs:attribute name="access" type="accessType" use="required"/>
<xs:attribute name="filter" type="xs:string"/>
</xs:complexType>
</xs:element>
top

Element: viewStream

Name viewStream
Type StreamType
Nillable no
Abstract no
Documentation The "viewStream" tag is used to decide whether a user can send a stream or not. The "name" attribute contains the name of the stream that is allowed or denied. Alternatively, you can use the "regex" attribute to pass a regex in parameter. The "access" attribute decides whether the rule will allow or deny access (can be "allow" or "reject").
XML Instance Representation
<viewStream
access="allow [1]"
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"/>
Schema Component Representation
<xs:element name="viewStream" type="StreamType"/>
top

Element: viewStreams

Name viewStreams
Type Locally-defined complex type
Nillable no
Abstract no
Documentation The "viewStreams" tag is used to decide whether the user is by default allowed to view a stream or not. It has a "defaultAccess" attribute that can be either "allow" or "reject". The default behaviour can be overloaded by individual "viewStream" tags. The "viewStreams" tag can contain any number of "viewStream" tag. The "viewStream" tags are applied from top to bottom. Apideo will stop going through tags after one tag is matched, so the order is important. Here is an example: &lt;viewStreams defaultAccess="reject"&gt; &lt;viewStream regex="stream_[.]*" access="allow" /&gt; &lt;viewStream name="stream_42" access="reject" /&gt; &lt;/viewStreams&gt; In the example above, the second "viewStream" rule will never be applied, because the first regex will always be matched first. So this code will result in an access allowed: <pre> // Access will be denied room.viewStream("cameraDiv", "stream_42") </pre> However, access will be denied if you put the rules in the other way. &lt;viewStreams defaultAccess="reject"&gt; &lt;viewStream name="stream_42" access="reject" /&gt; &lt;viewStream regex="stream_[.]*" access="allow" /&gt; &lt;/viewStreams&gt;
XML Instance Representation
<viewStreams
defaultAccess="accessType [1]">
<viewStream> ... </viewStream> [0..*]
</viewStreams>
Schema Component Representation
<xs:element name="viewStreams">
<xs:complexType>
<xs:sequence>
<xs:element ref="viewStream" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="defaultAccess" type="accessType" use="required"/>
</xs:complexType>
</xs:element>
top

Global Definitions

Complex Type: Room

Super-types: None
Sub-types: None
Name Room
Abstract no
XML Instance Representation
<...
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"
access="accessType [1]">
<userlist> ... </userlist> [0..1]
<userprofile> ... </userprofile> [0..1]
<sendEvents> ... </sendEvents> [0..1]
<listeners> ... </listeners> [0..1]
<startCameras> ... </startCameras> [0..1]
<viewStreams> ... </viewStreams> [0..1]
</...>
Schema Component Representation
<xs:complexType name="Room">
<xs:sequence>
<xs:element ref="userlist" maxOccurs="1" minOccurs="0"/>
<xs:element ref="userprofile" maxOccurs="1" minOccurs="0"/>
<xs:element ref="sendEvents" maxOccurs="1" minOccurs="0"/>
<xs:element ref="listeners" maxOccurs="1" minOccurs="0"/>
<xs:element ref="startCameras" maxOccurs="1" minOccurs="0"/>
<xs:element ref="viewStreams" maxOccurs="1" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
<xs:attribute name="regex" type="xs:string" use="optional"/>
<xs:attribute name="access" type="accessType" use="required"/>
</xs:complexType>
top

Complex Type: StreamType

Super-types: None
Sub-types: None
Name StreamType
Abstract no
XML Instance Representation
<...
access="allow [1]"
name="xs:NMTOKEN [0..1]"
regex="xs:string [0..1]"/>
Schema Component Representation
<xs:complexType name="StreamType">
<xs:attribute name="access" type="accessType" use="required" fixed="allow"/>
<xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
<xs:attribute name="regex" type="xs:string" use="optional"/>
</xs:complexType>
top

Complex Type: defaultTokenType

Super-types: None
Sub-types: None
Name defaultTokenType
Abstract no
Documentation The &lt;default&gt; tag contains the security rules to be applied by default. If the user does provide a token inside <code>joinRoom</code> or if the token passed in parameter does not exist or if the token rules do not specify anything meaningful, the default rule will be used instead. Please note that if the default rule does not explicitly forbid an action, it will be allowed. For instance, if you do not specifically specify that sending events is not allowed, all users who do not provide a token will be able to send events.
XML Instance Representation
<...>
<defaultRoom> Room </defaultRoom> [0..1]
<room> Room </room> [0..*]
</...>
Schema Component Representation
<xs:complexType name="defaultTokenType">
<xs:sequence>
<xs:element name="defaultRoom" type="Room" maxOccurs="1" minOccurs="0"/>
<xs:element name="room" type="Room" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
top

Simple Type: accessType

Super-types: xs:string < accessType (by restriction)
Sub-types: None
Name accessType
Content
  • Base XSD Type: string
  • value comes from list: {'allow'|'reject'}
Documentation Can be either "allow" (to allow access to the resource) or "reject" (to deny access to the resource).
Schema Component Representation
<xs:simpleType name="accessType">
<xs:restriction base="xs:string">
<xs:enumeration value="allow"/>
<xs:enumeration value="reject"/>
</xs:restriction>
</xs:simpleType>
top

Simple Type: apideoKeyType

Super-types: xs:string < apideoKeyType (by restriction)
Sub-types: None
Name apideoKeyType
Content
  • Base XSD Type: string
  • length = 18
Schema Component Representation
<xs:simpleType name="apideoKeyType">
<xs:restriction base="xs:string">
<xs:length value="18"/>
</xs:restriction>
</xs:simpleType>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia">
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice[1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1]?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexTypename="AusAddress">
<complexContent>
<extensionbase="Address">
<sequence>
<elementname="state" type="AusStates"/>
<elementname="postcode">
<simpleType>
<restrictionbase="string">
<patternvalue="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attributename="country" type="string" fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top