[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xdi] Schema for envelope model
One closing slash was missing - attached is the (syntactically) corrected version. Dave McAlpin wrote: > Attached is a proposed schema for the XDI envelope model. I did this by > hand, so it's probably not exactly right.
<schema
targetNamespace="urn:oasis:names:tc:XDI:1.0:resource"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xdi="urn:oasis:names:tc:XDI:1.0:resource"
elementFormDefault="qualified">
attributeFormDefault="unqualified">
<element name="Resource" type="xdi:ResourceType"/>
<complexType name="ResourceType">
<sequence>
<element ref="xdi:Header" minOccurs="0"/>
<element ref="xdi:Data"/>
</sequence>
<attribute name="ID" type="ID" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<element name="Header" type="xdi:HeaderType"/>
<complexType name="HeaderType">
<annotation>
<documentation>
Elements replacing the wildcard MUST be namespace qualified, but can be in the targetNamespace
</documentation>
</annotation>
<sequence>
<any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="ID" type="ID" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<element name="Data" type="xdi:DataType"/>
<complexType name="DataType">
<choice>
<element ref="xdi:Reference"/>
<any namespace="##any" processContents="lax"/>
</choice>
<attribute name="ID" type="ID" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<element name="Reference" type="xdi:ReferenceType"/>
<complexType name="ReferenceType">
<sequence>
<element ref="xdi:Transforms" minOccurs="0"/>
</sequence>
<attribute name="ID" type="ID" use="optional"/>
<attribute name="URI" type="anyURI" use="optional"/>
</complexType>
<element name="Transforms" type="xdi:TransformsType"/>
<complexType name="TransformsType">
<sequence>
<element ref="xdi:Transform" maxOccurs="unbounded"/>
</sequence>
<attribute name="ID" type="ID" use="optional"/>
</complexType>
<element name="Transform" type="xdi:TransformType"/>
<complexType name="TransformType" mixed="true">
<choice minOccurs="0" maxOccurs="unbounded">
<any namespace="##other" processContents="lax"/>
<element name="XPath" type="string"/>
</choice>
<attribute name="ID" type="ID" use="optional"/>
<attribute name="Algorithm" type="anyURI" use="required"/>
</complexType>
<!--
The following global attribute is usable via a qualified attribute name
on any complex type referencing it. It is intended to be used by elements
included in xdi:Header.
-->
<attribute name="mustUnderstand" type="boolean" default="0"/>
</schema>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]