| Target Namespace | http://www.w3.org/2007/05/moki |
|---|---|
| Element and Attribute Namespaces |
|
| Documentation |
This is the schema for MOKI, the MobileOK Intermediate document format. moki was produced as part of the mobileOK Checker project, to allow the representation of an HTML resource and all its associated resources together, in order to allow the checking of that HTML resource for mobileOK conformance. moki represents aspects of the HTTP retrieval of a resource, provides the ability to encode the content of the resource and to attach specific metadata about resources, concerning their size, validity and so on. Although moki was created for the specific purpose of being processed by XSLT to provide a "results" document containing the results of the mobileOK Basic Tests (hence it being termed "intermediate"), its possible uses are more general than that. No additional use cases were taken into account in its design and it is likely that it would need to be extended or modified to accommodate other applications. That said, the mobileOK checker itself does not currently exploit all moki features. Moki was developed and elaborated by members of the mobile OK Checker Task Force from an initial design by Jo Rabin. Comments about moki should be sent to the Checker Task Force mailing list (see archives), public-mobileOK-checker@w3.org. Editor: Jo Rabin Date: 22 October 2007 This Version: http://dev.w3.org/2007/mobileok-ref/moki/schema/moki-20071022.xsd Latest Version: http://dev.w3.org/2007/mobileok-ref/moki/schema/moki.xsd Previous Version: (none) Status: Editor's Draft $Id: moki.xsd.html,v 1.1 2007-10-22 18:21:07 JoRabin Exp $ Copyright © 2005-2007 W3C ® ( MIT , ERCIM , Keio), All Rights Reserved. W3C liability, trademark, document use rules apply. HTTP Related Validity Reporting |
| Prefix | Namespace |
|---|---|
| xml | http://www.w3.org/XML/1998/namespace |
| xs | http://www.w3.org/2001/XMLSchema |
| moki | http://www.w3.org/2007/05/moki |
| xhtml | http://www.w3.org/1999/xhtml |
| Name | CSSValidity |
|---|---|
| Used by (from the same schema document) | Element stylesheet |
| Type | moki:validityType |
| Nillable | no |
| Abstract | no |
| Documentation |
Details of CSS errors and warnings, if any. Overall valdity (no errors) indicated by "valid" attribute being true. |
| Name | HTTPRequest |
|---|---|
| Used by (from the same schema document) | Element retrieval |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
An XML representation of the request. Raw headers if present, represents the string that actually sent as headers. timeStart can be used to enable timing of the request. |
| Name | HTTPResponse |
|---|---|
| Used by (from the same schema document) | Element retrieval |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
An XML representation of an HTTP response. Raw headers if present, represents the string that was parsed to create the headers. timeStart and timeEnd can be used to track more precise timings of responses. Need to represent failure of underlying DNS or TCP |
| Name | MarkupValidity |
|---|---|
| Used by (from the same schema document) | Element validity |
| Type | moki:validityType |
| Nillable | no |
| Abstract | no |
| Documentation |
Records errors and warnings when evaluating against the provided DOCTYPE |
| Name | MobileValidity |
|---|---|
| Used by (from the same schema document) | Element validity |
| Type | moki:validityType |
| Nillable | no |
| Abstract | no |
| Documentation |
Records errors and warnings when evaluating against XHTML Basic 1.1 |
| Name | URI |
|---|---|
| Used by (from the same schema document) | Element aboutMe , Element stylesheet , Element image , Element object , Element link , Element HTTPRequest |
| Type | xs:anyURI |
| Nillable | no |
| Abstract | no |
| Name | UTF-8Validity |
|---|---|
| Used by (from the same schema document) | Element validity |
| Type | moki:validityType |
| Nillable | no |
| Abstract | no |
| Documentation |
Records errors and warnings when evaluating UTF-8 validity |
| Name | XHTMLDocInfo |
|---|---|
| Used by (from the same schema document) | Element primaryDoc |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
Details of the primary document, which is assumed to be an XHTML document. |
| Name | aboutMe |
|---|---|
| Used by (from the same schema document) | Element moki |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
Information about the process carrying out the assembly of the resources into moki format. In the alpha release of the checker this information is absent and the element is optional. In future versions of this schema additional elements will be introduced identifying various validation and other components. |
| Name | actualDimensions |
|---|---|
| Used by (from the same schema document) | Element imageInfo |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
The actual dimensions in pixels of images that have an intrinsic size. |
| Name | callingIP |
|---|---|
| Used by (from the same schema document) | Element aboutMe |
| Type | xs:string |
| Nillable | no |
| Abstract | no |
| Documentation |
The IP Address of the component generating the moki document. Since servers may vary the representation of resources based on IP address, this field is significant, though it is understood that address translation (NAT) may be in operation, so the IP address assigned to the component compiling the moki document may not be that received by the remote servers. Where possible, therefore, the address inserted here should be that after address translation. |
| Name | chars |
|---|---|
| Used by (from the same schema document) | Element XHTMLDocInfo |
| Type | Locally-defined complex type |
| Nillable | no |
| Abstract | no |
| Documentation |
The number of characters in the document and the number of white space characters that are extraneous (as defined in mobileOK Basic Tests MINIMIZE. Not sure whether the "total" here is different to the "size" of the final HTTP retrieval's body entity. |