1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/traceservices/tracefw/dictionary/dictionaryschema.xsd Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,138 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!-- Copyright (c) 2006 Symbian Software Ltd. All rights reserved. -->
1.6 +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
1.7 + <!-- root element for dictionary -->
1.8 + <xs:element name="tracedictionary">
1.9 + <xs:complexType>
1.10 + <xs:sequence>
1.11 + <xs:element name="metadata" type="options" minOccurs="0"/>
1.12 + <xs:element name="typedef" type="typedef" minOccurs="0"/>
1.13 + <xs:element name="data" type="data" minOccurs="0"/>
1.14 + <xs:element name="locations" type="locations" minOccurs="0"/>
1.15 + <xs:element name="component" type="component" minOccurs="0" maxOccurs="unbounded"/>
1.16 + </xs:sequence>
1.17 + <xs:attribute name="version" type="xs:float" default="1.0"/>
1.18 + </xs:complexType>
1.19 + </xs:element>
1.20 + <!--typemember type definition-->
1.21 + <xs:complexType name="typemember">
1.22 + <xs:sequence/>
1.23 + <xs:attribute name="name" type="xs:string" use="required"/>
1.24 + <xs:attribute name="type" type="xs:string" use="optional"/>
1.25 + <xs:attribute name="value" type="xs:integer" use="optional"/>
1.26 + </xs:complexType>
1.27 + <!--object type-->
1.28 + <xs:complexType name="object">
1.29 + <xs:sequence>
1.30 + <xs:element name="member" type="typemember" minOccurs="0" maxOccurs="unbounded"/>
1.31 + </xs:sequence>
1.32 + <xs:attribute name="type" type="xs:string" use="required"/>
1.33 + <xs:attribute name="classification" type="datatype" use="required"/>
1.34 + <xs:attribute name="size" type="xs:positiveInteger" use="optional"/>
1.35 + <xs:attribute name="formatchar" type="xs:string" use="optional"/>
1.36 + </xs:complexType>
1.37 + <!--Typedef object-->
1.38 + <xs:complexType name="typedef">
1.39 + <xs:sequence>
1.40 + <xs:element name="external-def" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1.41 + <xs:element name="object" type="object" maxOccurs="unbounded"/>
1.42 + </xs:sequence>
1.43 + </xs:complexType>
1.44 + <!--enumeration for data->type attributes-->
1.45 + <xs:simpleType name="datatype">
1.46 + <xs:restriction base="xs:string">
1.47 + <xs:enumeration value="string"/>
1.48 + <xs:enumeration value="integer"/>
1.49 + <xs:enumeration value="float"/>
1.50 + <xs:enumeration value="hex"/>
1.51 + <xs:enumeration value="binary"/>
1.52 + <xs:enumeration value="octal"/>
1.53 + <xs:enumeration value="enum"/>
1.54 + <xs:enumeration value="raw"/>
1.55 + <xs:enumeration value="compound"/>
1.56 + </xs:restriction>
1.57 + </xs:simpleType>
1.58 + <!--Options type-->
1.59 + <xs:complexType name="options">
1.60 + <xs:sequence>
1.61 + <xs:any namespace="##any" processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
1.62 + </xs:sequence>
1.63 + </xs:complexType>
1.64 + <!--def type definition-->
1.65 + <xs:complexType name="def">
1.66 + <xs:simpleContent>
1.67 + <xs:extension base="xs:string">
1.68 + <xs:attribute name="id" type="xs:positiveInteger" use="required"/>
1.69 + <xs:attribute name="type" type="datatype" default="string"/>
1.70 + </xs:extension>
1.71 + </xs:simpleContent>
1.72 + </xs:complexType>
1.73 + <!--data type definition-->
1.74 + <xs:complexType name="data">
1.75 + <xs:sequence>
1.76 + <xs:element name="def" type="def" maxOccurs="unbounded"/>
1.77 + </xs:sequence>
1.78 + </xs:complexType>
1.79 + <!--file type definition-->
1.80 + <xs:complexType name="file">
1.81 + <xs:simpleContent>
1.82 + <xs:extension base="xs:string">
1.83 + <xs:attribute name="id" type="xs:positiveInteger" use="required"/>
1.84 + </xs:extension>
1.85 + </xs:simpleContent>
1.86 + </xs:complexType>
1.87 + <!--path type definition-->
1.88 + <xs:complexType name="path">
1.89 + <xs:sequence>
1.90 + <xs:element name="file" type="file" maxOccurs="unbounded"/>
1.91 + </xs:sequence>
1.92 + <xs:attribute name="val" type="xs:string" use="required"/>
1.93 + </xs:complexType>
1.94 + <!--locations type definition-->
1.95 + <xs:complexType name="locations">
1.96 + <xs:sequence>
1.97 + <xs:element name="path" type="path" maxOccurs="unbounded"/>
1.98 + </xs:sequence>
1.99 + </xs:complexType>
1.100 + <!--instance type definition-->
1.101 + <xs:complexType name="instance">
1.102 + <xs:all>
1.103 + <xs:element name="options" type="options" minOccurs="0"/>
1.104 + </xs:all>
1.105 + <xs:attribute name="id" type="xs:positiveInteger" use="required"/>
1.106 + <xs:attribute name="loc-ref" type="xs:positiveInteger" use="required"/>
1.107 + <xs:attribute name="line" type="xs:positiveInteger" use="required"/>
1.108 + <xs:attribute name="methodname" type="xs:string" use="required"/>
1.109 + <xs:attribute name="classname" type="xs:string" use="optional"/>
1.110 + </xs:complexType>
1.111 + <!--trace type definition-->
1.112 + <xs:complexType name="trace">
1.113 + <xs:sequence>
1.114 + <xs:element name="options" type="options" minOccurs="0"/>
1.115 + <xs:element name="instance" type="instance" minOccurs="0" maxOccurs="unbounded"/>
1.116 + </xs:sequence>
1.117 + <xs:attribute name="data-ref" type="xs:positiveInteger" use="optional"/>
1.118 + </xs:complexType>
1.119 + <!--tracetype type definition-->
1.120 + <xs:complexType name="group">
1.121 + <xs:sequence>
1.122 + <xs:element name="options" type="options" minOccurs="0"/>
1.123 + <xs:element name="trace" type="trace" maxOccurs="unbounded"/>
1.124 + </xs:sequence>
1.125 + <xs:attribute name="id" type="xs:positiveInteger" use="required"/>
1.126 + <xs:attribute name="name" type="xs:string" use="required"/>
1.127 + <xs:attribute name="prefix" type="xs:string" use="optional"/>
1.128 + <xs:attribute name="suffix" type="xs:string" use="optional"/>
1.129 + </xs:complexType>
1.130 + <!--copmponent type definition-->
1.131 + <xs:complexType name="component">
1.132 + <xs:sequence>
1.133 + <xs:element name="options" type="options" minOccurs="0"/>
1.134 + <xs:element name="group" type="group" maxOccurs="unbounded"/>
1.135 + </xs:sequence>
1.136 + <xs:attribute name="id" type="xs:integer" use="required"/>
1.137 + <xs:attribute name="name" type="xs:string" use="required"/>
1.138 + <xs:attribute name="prefix" type="xs:string" use="optional"/>
1.139 + <xs:attribute name="suffix" type="xs:string" use="optional"/>
1.140 + </xs:complexType>
1.141 +</xs:schema>