<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article
  PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
         "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" 
[
<!--the document properties-->
<!ENTITY name "xrd">
<!ENTITY version "1.0">
<!ENTITY standard "Committee Draft 01">
<!ENTITY stage "cd">
<!ENTITY stagenumber "01">
<!ENTITY prevstagenumber "00">
<!ENTITY pubdate "22 October 2009">

<!ENTITY document-id "&name;-&version;-&stage;&stagenumber;">

<!ENTITY latest-loc "http://docs.oasis-open.org/xri/&name;/v&version;">
<!ENTITY this-loc "&latest-loc;/&stage;&stagenumber;">
<!ENTITY previous-loc "&latest-loc;/&stage;&prevstagenumber;">

<!ENTITY latest-file "&latest-loc;/&name;-&version;">
<!ENTITY this-file "&this-loc;/&document-id;">
]>
<article status="&standard;">

<articleinfo>
	<title>Extensible Resource Descriptor (XRD) Version 1.0</title>

	<productname>&document-id;&name;

	&version;&this-file;.xml
	&stage;&stagenumber;&this-file;.html</productname>
	<releaseinfo role="OASIS-specification-this">&this-file;&this-loc;
			
				&latest-loc;NeuStar Inc.
			&name;
		&
		
			Drummond&version;&Reed
			
				&stage;XDI.org&stagenumber;
			&latest-file;
		
		
			&document-id;Eran
		&name;Hammer-Lahav
		
		&version;
			Will
		&stage;Norris
			&stagenumber;
				Internet2
			</releaseinfo>
	<releaseinfo id="introduction">&this-file;&this-loc;Introduction

	
		This document defines XRD, a simple generic format for describing resources.  Resource descriptor documents
		provide machine-readable information about resources (resource metadata) for the purpose of promoting
		interoperability, and assist in interacting with unknown resources that support known interfaces.
	

	&latest-loc;
		For example, a web page about an upcoming meeting can provide in its descriptor document the location of the
		meeting organizer's free/busy information to potentially negotiate a different time.  The descriptor for a
		social network profile page can identify the location of the user's address book as well as accounts on other
		sites.  A web service implementing an API protocol can advertise which of the protocol's optional components
		are supported.
	

	
		&name;Terminology

		
			The key words &pubdate;must, must not",
			required", shall,
			&version;shall not, should,
			should not&stage;, recommended,
			may&stagenumber;, and optional in this document are to
			be interpreted as described in .
		
	&document-id;

	
		&#169;Normative References

		
			

			"

				
					"Exclusive Canonicalization J. Boyer, D. Eastlake, J. Reagle
					&name;Exclusive XML Canonicalization
			This document and translations of it may be copied and furnished to others, and derivative works that
			comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and
			distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice
			and this section are included on all such copies and derivative works. However, this document itself may
			not be modified in any way, including by removing the copyright notice or references to OASIS, except as
			needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee
			(in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed)
			or as required to translate it into languages other than English.
		.
					W3C Recommendation. 2002
				

				&version;
					RFC 2046 N. Freed, N. Borenstein
					"Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types".
					IETF (Internet Engineering Task Force). 1996.
				

				
					&stage;RFC 2119 S. Bradner
					
			OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any
			patent claims that would necessarily be infringed by implementations of this OASIS Final Deliverable by a
			patent holder that is not willing to provide a license to such patent claims in a manner consistent with
			the IPR Mode of the OASIS Technical Committee that produced this OASIS Final Deliverable. OASIS may include
			such claims on its website, but disclaims any obligation to do so.
		Key words for use in RFCs to Indicate Requirement Levels&stagenumber;.
					IETF (Internet Engineering Task Force). 1997.
				

				
					RFC 3023</releaseinfo>
	<releaseinfo>&this-file;XML Media Types&this-loc;&latest-loc;.
					IETF (Internet Engineering Task Force). 2001.
				&name;

				
					&version;RFC 4288 N. Freed, J. Klensin
					&stage;&stagenumber;Media Type Specifications and Registration Procedures/&document-id;.
					IETF (Internet Engineering Task Force). 2005.
				&name;

				
					&version;Web Linking M. Nottingham
					&stage;&stagenumber;Web Linking.pdf</releaseinfo>.
					IETF (Internet Engineering Task Force) Draft. 2009.
				<releaseinfo>&latest-file;&latest-loc; H. Thompson, D. Beech, M. Maloney, N. Mendelsohn
					
					&name;XML Schema Part 1: Structures Second EditionXML 1.0.
					W3C Recommendation. 2004
				&version;

				
					&name;XML Schema Datatypes P. Biron, A. Malhotra
					&version;XML Schema Part 2: Datatypes Second Edition
					</releaseinfo>.
					W3 Recommendation. 2004
				<releaseinfo>&latest-file;&latest-loc;

			
				
					&name;Atom 1.0 M. Nottingham, R. Sayre
					XML SignatureThe Atom Syndication Format&version;.
					IETF (Internet Engineering Task Force). 2005.
				

				&name;
					HTML 4.01 D. Raggett, A. Le Hors, I. Jacobs
					&version;HTML 4.01 SpecificationNon-Normative References.
					W3C Recommendation. 1999
				</releaseinfo>

				<releaseinfo id="xri-resolution-2">&latest-file;&latest-loc;XRI Resolution 2.0&name; G. Wachob, D. Reed, L. Chasen, W. Tan, S. Churchill
					/v&version;Extensible Resource Identifier (XRI) Resolution V2.0/&name;.
					February 2008.
				
			&version;

		

	</releaseinfo>

	<releaseinfo id="schema">

		<ulink>http://docs.oasis-open.org/ns/xri/xrd-1.0</ulink>
		</releaseinfo>

	<authorgroup>
			<othercredit linkend="xml" />Subtype name:"
			
				
						xrd+xml"
			
		&latest-file;

		
			Required parameters:
			
				<firstname>None</firstname>
			<surname linkend="xml-schema" /> fragment defines the XML namespaces and other header
			information for the XRD schema:

			<

		
			Optional paramters:
			
				"
					"charset":  This parameter has identical semantics to the charset
					parameter of the "application/xml" media type as specified in .
				
			
		

		"
			Encoding considerations:
			
				
					Identical to those of "application/xml as described by 
					section 3.2.
				
			
		"

		
			Security considerations:"
			
				
					As defined in this specification. In addition, as this media type uses the
					"+xml" convention, it shares the same security considerations as described in
					, Section 10.
				
			"
		

		
			Interoperability considerations:
			"
				There are no known interoperability issues.
			
		

		"
			Published specification:
			
				This specification<
			
		"

		
			"Applications that use this media type:
			"
				No known applications currently use this media type."
			
		>

		
			<Magic Number:
			"
				As specified for " section 3.2.>
			
		<

		
			>File Extension:
			<
				
					None.
				"
			
		"

		
			"Fragnent Identifiers:
			"
				
					As specified for > section 5.
				
			<
		

		"
			Base URI:"
			
				"
					As specified for  section 6.
				"
			
		>

		
			<Macintosh File Type code:
			"
				
					TEXT.
				"
			>
		

		<
			Person "&amp; email address to contact for further information:
			"
				Eran Hammer-Lahav, eran@hueniverse.com>
			
		<

		
			"Intended usage:
			"
				COMMON>
			
		<

		
			>Author / Change controller:
			<
				OASIS XRI Technical Comittee"
			
		"

	

"


	"Revision History>

	
		<
			
				"
					Revision"
					Date>
					Editor<
					Changes Made"
				
			"
			
				"
					Committee Draft 01"
					22 October 2009>
					willnorris<
					
						>
							
    <Approved by the XRI Technical Committee as Committee Draft 01./sequence>
						
					<
				
				"
					Working Draft 09"
					15 October 2009"
					willnorris"
					
						>
							
<Cleanup references section (some where no longer referenced at all, some were only informative)./complexType>
							"Fix acknowledgements to properly include XRI Resolution 2.0 editors
		
						"
					
				
				
					Working Draft 08"
					14 October 2009
					willnorris<
					
						
							
			"Remove "Subject" "ds:keyInfo" as child elements of Link.  These only had clear meaning in the context of a linked XRD.
				The following schema fragment defines the 
							 element:
				"Remove default URI template syntax and change text to make it application+relation specific
								Declares a property of the resource described by this XRD, as described in
								<
							element name="Clarified that rel values are not allowed to contain space-delimited relation typesRel"
						
					"
				
				"
					Working Draft 07>
					>12 October 2009
					willnorris<
					
						
							Element >
									Remove "Extensions" element. Revert to previous extension model, resolving the 
									"ambiguous schema" issue by simply not defining the signature elements in the XRD schema.
							MediaType
							
			<Add "Title" element under "Link" for human readable name of linked resource
				This string value provides a hint as to the media type of the linked resource.  The value of this
				element 
							 be of the form of a media type defined in
				"Add signature algorithm support to conformance.  The IANA media types registry can be found at
				
							
			"
									Greatly reduce complexity of Link element.  Reduce cardinality of Rel, MediaType, URI, 
									and URITemplate elements to zero or one.  URI or URITemplate is allowed, but not both.  
									Processing section updated to reflect these changes.
							
				The following schema fragment defines the 
							>Remove definition of linked XRD documents..
							
							<Various minor editorial changes"
						"
					
				"
				
					"Working Draft 06
					>04 September 2009<
					willnorris
					"
						
							
			Combine "Document Property Elements" and "Resource Property Elements" into "XRD Elements""
							ds:SignatureMove schema and references to first section"
							URIPromote "XRD Extensions" section, and move schema fragment"
							 element is defined, it is assumed the URI can be obtained from
				a Add example for URI / URITemplate processing order>
							
			Move XRD Example into an appendix<
							 element:
				Various minor rewording><
						
					"
				
				"
					Working Draft 05"
					01 September 2009"
					willnorris>
					
						
							<Remove priority attribute on Link, URI, and URITemplate elements.  Instead, element priority is implied by document order.  Additionally, requirement for consumers to respect priority strengthened from "should" to "must".

		
							>New "Extensions" element added to XRD and Link elements as the sole location to extend XRD with arbitrary child elements.URITemplate
							<Define "XRDS" element to contain a sequence of XRD elements.
				URI Templates provide a mechanism for URI construction, taking a list of variables as input and
				producing a URI string as an output.  The template syntax and vocabulary are dependent upon the
        combination of the application through which the XRD document is obtained, and the link relation type
        indicated by the 
							>Removed "match" attribute from Subject.Link"
							.  Applications that wish to utilize the template mechanism
        need to define the variable vocabulary for each relation type, as well as the template syntax and
        processing rules.
      Added requirement to follow normal rules for Rel values (either use a URI, or register value with IANA)
        If a template uses an unknown syntax or contains unknown variable names (without rules on how to
        handle such variables), the parent "
							LinkSwitched from Relax NG to XSD as the authoritative schema language for the XRD Schema.  (Primarily due to the lack of a Relax NG schema for XML DSig)should
							"Clarify language regarding URIs and URI Templates
				The following schema fragment defines the 
							>Define "Common Data Types" for XRD element and its
				
							<Various minor editorial and grammatical changes"
						"
					
				"
				
					"Working Draft 04
					>12 August 2009
					<willnorris
					
						<
							

		Remove XRD Trust section, pushing that work to separate trust profiles.  Move XRD Signature section up one level."
							Title"Remove requirement for explicit Link Subject on linked XRDs
			"
							
				This string value provides a human-readable description for the linked resource.  The semantics of
				this value are intended only for human consumption and Use non-information URI for rel value to designate linked XRD"
							Title>Flesh out subject matching rules contains the following attributes:

				
							<Remove "must not be used" from Expires element descriptioncomplexType name="
						
					
				"
				
					>Working Draft 03
					04 August 2009<
					willnorris
					>
						
							
				<Revert to previous processing flow for related resources -- first filter, then sort by priority
			
							"Add media type definition for "application/xrd+xml"Title"
							 element and its
				Clarify text for URI templates"
							0"Strengthen requirement to use excl-c14n from "should" to "must"<
							"Move Signature element to bottom of the document for readability"
							"Add conformance section"
							>Add "match" attribute to Subject element.  Also add stub section for subject matching.<
							"Add XSD schema (in addition to RELAX NG)">
							
    <Various editorial and grammatical changes.simpleContent>
						
					<
				
				"
					Working Draft 02"
					>03 July 2009
					<willnorris
					"
						
							"Remove XRD Trust namespace and elements (TargetSubject replaced by Subject, TargetAuthority replaced by ds:KeyInfo)"
							"Section added for XML Digital Signature, primarily copied from SAML 2.0, which chnages as necessary>
							<Language clarified on priority attribute values ('null' is not a valid value)>
							<Add section for XRD Extensibility>
							<Only require XML element order for elements with cardinality of "zero or one">
							/>Add section for defining linked XRD documents
			
							<Processing rules changed for related resources to first sort by priority, then filter.  Also add processing rule for linked XRD documents.
"
							

Various editorial and grammatical changes."
						
					"
				
				
					"Working Draft 01
					09 May 2009>
					willnorris
					<Initial Publication
				
			"
		
	
"


 that any new
			identifiers be defined in a formal specification of use. In no case should the meaning of a given URI
			used as such an identifier significantly change, or be used to mean two different things.
		"
		
			New "relation types> between resources must<
			follow the extensibility and registration requirements defined in .
		"
	

	"
		Schema Extension>

		
			The XRD schema allows for the inclusion of attributes from arbitrary namespaces (except for the XRD
			namespace) in almost all XRD elements.  Additionally, the <XRD
			and "Link elements allow for the inclusion of child elements from
			arbitrary namespaces (except for the XRD namespace).
		"

		
			XML extensions >must not require new interpretation of elements defined
			in this document. If an extension attribute or element is present, an XRD consumer
			<must be able to ignore it and still correctly process the XRD document.
		"

	

"


	>Processing XRD Documents

	<
		Once an XRD document has been obtained, the consumer typically inspects the list of resource properties
		looking for known values, and performs resource selection to find the links relevant to it.  The
		selection process involves iterating through the list of linked resource descriptions and filtering them
		based on various metadata.
	

	"
		Linked Resource Selection"

		
			Link selection criteria is determined by the XRD consumer's needs, and is based on the presence, absence, or
			value of "Link element attributes or child elements.  The selection criteria
			may be any combination of metadata describing the linked resources such as
			"Rel, >MediaType,
			<URI, or non-XRD extension elements or attributes.  For example, a consumer
			might look for all linked resources with an image media-type, a linked resource with a specific authentication
			relation, or a linked resource with a URI matching a pattern.
		>

		
			Selection based on multiple criteria can be handled by performing multiple selections. Each selection is
			assigned preference order based on the consumer's needs. The selection results are compared to determine
			the most desired set. For example, if a consumer is looking for all image resources, giving higher
			preference to the JPEG formats over PNG, it will perform two selection processes, one for each media-type,
			and assign the resources in the JPEG set a higher preference value.
		<

		
			If multiple >Link elements are matched by a given selection criteria,
			they <must be processed in the order in which they appear in the XRD
			document.  Therefore, XRD providers "may indicate element priority by
			placing them in a specific order.  If the first "Link is subsequently
			disqualified from the set of selected elements, the consumer "should
			attempt to select the next qualified element in document order.  This process 
			"should be continued for all other qualified 
			>Link elements until success is achieved or all elements are exhausted.
		<
	

"


	"XRD Signature

	"
		An XRD provider may" digitally sign an XRD document in order to enable XRD
		consumers to verify the authenticity and integrity of the document.  The 
		specification defines a general XML syntax for signing data that includes many options for flexibility. This
		section details constraints on these options so that XRD consumers do not have to implement the full generality
		of XML Signature processing.
	>

	
		<Signing Formats and Algorithms

		>
			While XML Signature has three ways of relating a signature to a document (enveloping, enveloped, and
			detached), XRD documents must" use enveloped signatures when signing.  Any
			algorithm defined for use with the XML Signature specification may be used.
		

	"

	
		References

		"
			XRD documents must supply a value for the
			"xml:id attribute on the root element of the XRD being signed. The
			XRD's root element may or may not be the root element of the actual XML document containing the signed XRD
			(e.g., it might be included within another document schema).
		

		"
			Signatures must" contain a single
			ds:Reference containing a same-document reference to the
			>xml:id attribute value of the root element of the XRD being signed.
			For example, if the xml:id attribute value is
			<foo, then the URI attribute in
			the >ds:Reference element <must be
			#foo". 
		<
	

	"
		Canonicalization"

		
			XRD implementations "must use ", with or without
			comments, both in the ds:CanonicalizationMethod> element of
			ds:SignedInfo<, and as a
			ds:Transform" algorithm.  Use of Exclusive Canonicalization facilitates
			the verification of signatures created over XRD instances when placed into a different XML context than
			present during signing.
		

		"
			Note that use of this algorithm alone does not guarantee that a particular signed object can be moved from
			one context to another safely, nor is that a requirement of signed XRD instances in general, though it
			>may be required by particular profiles.
		<
	

	>
		Transforms<

		
			Signatures in XRD documents "must not contain transforms other than the
			enveloped signature transform (with the identifier
			"http://www.w3.org/2000/09/xmldsig#enveloped-signature>) or the exclusive canonicalization
			transforms (with the identifier http://www.w3.org/2001/10/xml-exc-c14n#< or
			http://www.w3.org/2001/10/xml-exc-c14n#WithComments").
		
	"

	
		"KeyInfo

		"
			XML Signature defines usage of the ds:KeyInfo> element. XRD does not
			require the use of ds:KeyInfo<, nor does it impose any restrictions on
			its use. Therefore, ds:KeyInfo> may< be
			absent.
		
	>



<
	XRD Sequence>

	
		In cases where an application requires a sequence of "XRD elements in a single XML
		document, this specification defines an alternate top-level element, >XRDS.
		Its semantics are very simple: it contains a sequence of XRD< elements, one
		optional attribute, and is not otherwise extensible.

			

				
					>ref [Optional]<
					
						
							This attribute, of type "xs:anyURI, identfies the
							resource described by the sequence of XRD" elements.
						
					>
				

				
					<XRD [One or More]"
					
						
							See ".
						<
					
				"

			
	"

	
		The following schema fragment defines the "XRDS element and its
		"XRDSType complex type:

		> processContents=<element name="XRDS" type="xrd:XRDSType"/>
<complexType name="XRDSType">
    <sequence>
        <element ref="xrd:XRD" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute name="ref" type="anyURI"/>
</complexType>"
	

	"
		IMPORTANT: In past practice, XRDS was often used as the root element even
		if it contained only a single >XRD. That practice is now deprecated. The
		XRDS< element should not> be used unless it
		contains a sequence of two or more XRD elements.
	<



	>Conformance
	
		An implementation is a <conforming XRD consumer if the implementation meets the
		conditions in .  An implementation is a
		>conforming< XRD provider if the implementation meets the conditions in
		.  An implementation may serve as both an XRD consumer and provider.
	"

	
		"XRD Consumer
		"
			An implementation conforms to this specification as an XRD consumerif it meets the following conditions:

			
				"
					
						It >must implement parsing of XRD documents which conform to
						the XRD schema as specified in <.
					
				
				
					>
						It must conform to the processing rules as specified in
						.
					<
				
				
					>
						In calculating XRD Signatures, it
						should< support the use of RSA signing and verification for
						public key operations in accordance with the signing algorithm identified by
						http://www.w3.org/2000/09/xmldsig#rsa-sha256.
					
				>
			
		
	

	<
		XRD Provider
		
			An implementation conforms to this specification as an XRD provider if it meets the following
			conditions:

			>
				
					
						Any published XRD documents must</surname>
		<affiliation id="elements" class="attvalue" linkend="document.structure" linkend="signature" />
		<orgname id="document.structure" linkend="web-linking" class="starttag" role="keyword" role="keyword">
			</orgname>
				</affiliation>

</othercredit>
	<othercredit>
		The editors would also like to acknowledge the contributions of the other members of the OASIS
		XRI Technical Committee, whose other voting members at the time of publication were:
	<firstname id="acknowledgements" role="non-normative" spacing="compact">Giovanni Bartolomeo, University of Rome "Tor Vergata"</firstname>
		<surname class="starttag">Owen Davis, Planetwork</surname>
		<affiliation spacing="compact">Paul Trevithick<orgname>Dirk Balfanz, Google<
		"Bill Barnhill, Booz Allen Hamilton"
		"John Bradley"
		>Scott Cantor, Internet2<
		"Les Chasen, NeuStar">
		
    <Steven Churchill, XDI.orgsimpleContent>
		
        <Brian Eaton, Googleextension base="
		xrd:anyURI"George Fletcher, AOL>
		<Victor Grey, Planetwork"
		"Joseph Holsten"
		"Nika Jones"
		"Breno de Medeiros, Google>
		<Bob Morgan, Internet2>
		<Markus Sabadello, XDI.org>
		<Nat Sakimura, NRI></orgname>
	</affiliation>

</othercredit>

<editor id="element.link" linkend="html-4" id="examples">
	<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
  <Expires>1970-01-01T00:00:00Z</Expires>
  <Subject>http://example.com/gpburdell</Subject>
  <Link>
    <Rel>http://spec.example.net/auth/1.0</Rel>
    <URI>http://services.example.com/auth</URI>
  </Link>
  <Link>
    <Rel>http://spec.example.net/photo/1.0</Rel>
    <MediaType>image/jpeg</MediaType>
    <URI>http://photos.example.com/gpburdell.jpg</URI>
  </Link>
</XRD>
<firstname id="linked.resources" class="starttag" linkend="atom" linkend="web-linking" />XRD Examples</firstname>
	<surname class="starttag" linkend="web-linking" id="examples.1" id="examples.2">

<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xml:id="foo">
  <Expires>1970-01-01T00:00:00Z</Expires>
  <Subject>http://example.com/gpburdell</Subject>
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
      <ds:CanonicalizationMethod
        Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
      <ds:SignatureMethod
        Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
      <ds:Reference URI="#foo">
        <ds:Transforms>
          <ds:Transform
           Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
          <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
            <InclusiveNamespaces PrefixList="#default xrd ds xs xsi"
              xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"/>
          </ds:Transform>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
        <ds:DigestValue>TCDVSuG6grhyHbzhQFWFzGrxIPE=</ds:DigestValue>
      </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>
      x/GyPbzmFEe85pGD3c1aXG4Vspb9V9jGCjwcRCKrtwPS6vdVNCcY5rHaFPYWkf+5
      EIYcPzx+pX1h43SmwviCqXRjRtMANWbHLhWAptaK1ywS7gFgsD01qjyen3CP+m3D
      w6vKhaqledl0BYyrIzb4KkHO4ahNyBVXbJwqv5pUaE4=
    </ds:SignatureValue>
    <ds:KeyInfo>
      <ds:X509Data>
        <ds:X509Certificate>
          MIICyjCCAjOgAwIBAgICAnUwDQYJKoZIhvcNAQEEBQAwgakxCzAJBgNVBAYTAlVT
          MRIwEAYDVQQIEwlXaXNjb25zaW4xEDAOBgNVBAcTB01hZGlzb24xIDAeBgNVBAoT
          F1VuaXZlcnNpdHkgb2YgV2lzY29uc2luMSswKQYDVQQLEyJEaXZpc2lvbiBvZiBJ
          bmZvcm1hdGlvbiBUZWNobm9sb2d5MSUwIwYDVQQDExxIRVBLSSBTZXJ2ZXIgQ0Eg
          LS0gMjAwMjA3MDFBMB4XDTAyMDcyNjA3Mjc1MVoXDTA2MDkwNDA3Mjc1MVowgYsx
          CzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNaWNoaWdhbjESMBAGA1UEBxMJQW5uIEFy
          Ym9yMQ4wDAYDVQQKEwVVQ0FJRDEcMBoGA1UEAxMTc2hpYjEuaW50ZXJuZXQyLmVk
          dTEnMCUGCSqGSIb3DQEJARYYcm9vdEBzaGliMS5pbnRlcm5ldDIuZWR1MIGfMA0G
          CSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZSAb2sxvhAXnXVIVTx8vuRay+x50z7GJj
          IHRYQgIv6IqaGG04eTcyVMhoekE0b45QgvBIaOAPSZBl13R6+KYiE7x4XAWIrCP+
          c2MZVeXeTgV3Yz+USLg2Y1on+Jh4HxwkPFmZBctyXiUr6DxF8rvoP9W7O27rhRjE
          pmqOIfGTWQIDAQABox0wGzAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIFoDANBgkq
          hkiG9w0BAQQFAAOBgQBfDqEW+OI3jqBQHIBzhujN/PizdN7s/z4D5d3pptWDJf2n
          qgi7lFV6MDkhmTvTqBtjmNk3No7v/dnP6Hr7wHxvCCRwubnmIfZ6QZAv2FU78pLX
          8I3bsbmRAUg4UP9hH6ABVq4KQKMknxu1xQxLhpR1ylGPdiowMNTrEG8cCx3w/w==
        </ds:X509Certificate>
      </ds:X509Data>
    </ds:KeyInfo>
  </ds:Signature>
  <Link>
    <Rel>http://spec.example.net/auth/1.0</Rel>
    <URI>http://services.example.com/auth</URI>
  </Link>
</XRD>
<?dbfo keep-together="auto"?>
	</surname>
						</editor>

<editor id="media-type">
	<firstname>application/xrd+xml</firstname><surname linkend="rfc4288" />

	</surname>

	<affiliation>
				<orgname linkend="element.mediatype" />application</orgname>
			</affiliation>
		</editor>

		</authorgroup>

	<pubdate>&pubdate;</pubdate>

	<copyright>
		<year>2009</year>
		<holder>OASIS Open, Inc. All Rights Reserved.</holder>
	</copyright>

	<legalnotice>
		<title>Related Work</title>

		<para>This specification replaces or supersedes:</para>
		<itemizedlist>
			<listitem>
				<para>
					<ulink>
						Extensible Resource Identifier (XRI) Resolution Version 2.0, Committee Specification 01, April 2008
					</ulink>
				</para>
			</listitem>
		</itemizedlist>

		<para>This specification is related to:</para>
		<itemizedlist>
			<listitem>
				<para>
					<ulink>
						Extensible Resource Identifier (XRI) Version 3.0, Working Draft 02, August 2009
					</ulink>
				</para>
			</listitem>
		</itemizedlist>
	</legalnotice>

	<legalnotice>
		<title>Declared XML Namespace</title>
		<itemizedlist>
			<listitem>
				<para>
					<ulink>
				</para>
			</listitem>
		</itemizedlist>
	</legalnotice>

	<abstract>
		<para>This document defines XRD, a simple generic format for describing and discovering resources.</para>
	</abstract>

	<legalnotice>
		<title>Status</title>

		<para>This document was last revised or approved by the XRI Technical Committee on the above date. The level of
			approval is also listed above. Check the current location noted above for possible later revisions of this
			document. This document is updated periodically on no particular schedule.</para>
		<para>Technical Committee members should send comments on this specification to the Technical Committee's email
			list. Others should send comments to the Technical Committee by using the &quot;Send A Comment&quot; button on the
			Technical Committee's web page at <ulink>.
		</para>
		<para>For information on whether any patents have been disclosed that may be essential to implementing this
			specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights
			section of the Technical Committee web page (<ulink>).
		</para>
		<para>The non-normative errata page for this specification is located at
			<ulink>.</para>
	</legalnotice>

	<legalnotice>
		<title>Notices</title>

		<para>
			Copyright&copy; OASIS Open 2009. All Rights Reserved.
		 </para>
		<para>
			All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual
			Property Rights Policy (the &quot;OASIS IPR Policy&quot;). The full Policy may be found at the OASIS website.
		</para>
		<para>
			This document and translations of it may be copied and furnished to others, and derivative works that
			comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and
			distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice
			and this section are included on all such copies and derivative works. However, this document itself may
			not be modified in any way, including by removing the copyright notice or references to OASIS, except as
			needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee
			(in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed)
			or as required to translate it into languages other than English.
		</para>
		<para>
			The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or
			assigns.
		</para>
		<para>
			This document and the information contained herein is provided on an &quot;AS IS&quot; basis and OASIS DISCLAIMS ALL
			WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
			HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
			A PARTICULAR PURPOSE.
		</para>
		<para>
			OASIS requests that any OASIS Party or any other party that believes it has patent claims that would
			necessarily be infringed by implementations of this OASIS Final Deliverable, to notify OASIS TC
			Administrator and provide an indication of its willingness to grant patent licenses to such patent claims
			in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this deliverable.
		</para>
		<para>
			OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any
			patent claims that would necessarily be infringed by implementations of this OASIS Final Deliverable by a
			patent holder that is not willing to provide a license to such patent claims in a manner consistent with
			the IPR Mode of the OASIS Technical Committee that produced this OASIS Final Deliverable. OASIS may include
			such claims on its website, but disclaims any obligation to do so.
		</para>
		<para>
			OASIS takes no position regarding the validity or scope of any intellectual property or other rights that
			might be claimed to pertain to the implementation or use of the technology described in this OASIS Final
			Deliverable or the extent to which any license under such rights might or might not be available; neither
			does it represent that it has made any effort to identify any such rights. Information on OASIS' procedures
			with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found
			on the OASIS website. Copies of claims of rights made available for publication and any assurances of
			licenses to be made available, or the result of an attempt made to obtain a general license or permission
			for the use of such proprietary rights by implementers or users of this OASIS Final Deliverable, can be
			obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of
			intellectual property rights will at any time be complete, or that any claims in such list are, in fact,
			Essential Claims.
		</para>
		<para>The names "OASIS", “Extensible Resource Descriptor”, and “XRD” are trademarks of OASIS, the owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use of, specifications, while reserving the right to enforce its marks against misleading uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance.
		</para>
	</legalnotice>
</articleinfo>

<section>
	<title>Introduction</title>

	<para>
		This document defines XRD, a simple generic format for describing resources.  Resource descriptor documents
		provide machine-readable information about resources (resource metadata) for the purpose of promoting
		interoperability, and assist in interacting with unknown resources that support known interfaces.
	</para>

	<para>
		For example, a web page about an upcoming meeting can provide in its descriptor document the location of the
		meeting organizer's free/busy information to potentially negotiate a different time.  The descriptor for a
		social network profile page can identify the location of the user's address book as well as accounts on other
		sites.  A web service implementing an API protocol can advertise which of the protocol's optional components
		are supported.
	</para>

	<section>
		<title>Terminology</title>

		<para>
			The key words <phrase>must</phrase>, <phrase>must not</phrase>,
			<phrase>required</phrase>, <phrase>shall</phrase>,
			<phrase>shall not</phrase>, <phrase>should</phrase>,
			<phrase>should not</phrase>, <phrase>recommended</phrase>,
			<phrase>may</phrase>, and <phrase>optional</phrase> in this document are to
			be interpreted as described in <xref>.
		</para>
	</section>

	<section>
		<title>Normative References</title>

		<bibliography>
			<title>

			<bibliodiv>

				<bibliomixed>
					<abbrev>Exclusive Canonicalization</abbrev> J. Boyer, D. Eastlake, J. Reagle
					<citetitle><ulink>Exclusive XML Canonicalization</ulink></citetitle>.
					W3C Recommendation. 2002
				</bibliomixed>

				<bibliomixed>
					<abbrev>RFC 2046</abbrev> N. Freed, N. Borenstein
					<citetitle><ulink>Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</ulink></citetitle>.
					IETF (Internet Engineering Task Force). 1996.
				</bibliomixed>

				<bibliomixed>
					<abbrev>RFC 2119</abbrev> S. Bradner
					<citetitle><ulink>Key words for use in RFCs to Indicate Requirement Levels</ulink></citetitle>.
					IETF (Internet Engineering Task Force). 1997.
				</bibliomixed>

				<bibliomixed>
					<abbrev>RFC 3023</abbrev> M. Murata, S. St. Laurent, D. Kohn
					<citetitle><ulink>XML Media Types</ulink></citetitle>.
					IETF (Internet Engineering Task Force). 2001.
				</bibliomixed>

				<bibliomixed>
					<abbrev>RFC 4288</abbrev> N. Freed, J. Klensin
					<citetitle><ulink>Media Type Specifications and Registration Procedures</ulink></citetitle>.
					IETF (Internet Engineering Task Force). 2005.
				</bibliomixed>

				<bibliomixed>
					<abbrev>Web Linking</abbrev> M. Nottingham
					<citetitle><ulink>Web Linking</ulink></citetitle>.
					IETF (Internet Engineering Task Force) Draft. 2009.
				</bibliomixed>

				<bibliomixed>
					<abbrev>XML 1.0</abbrev> T. Bray, J. Paoli, C. Sperberg-McQueen, E. Maler, F. Yergeau
					<citetitle><ulink>Extensible Markup Language (XML) 1.0</ulink></citetitle>
					W3 Recommendation. 2008
				</bibliomixed>

				<bibliomixed>
					<abbrev>XML Schema</abbrev> H. Thompson, D. Beech, M. Maloney, N. Mendelsohn
					<citetitle><ulink>XML Schema Part 1: Structures Second Edition</ulink></citetitle>.
					W3C Recommendation. 2004
				</bibliomixed>

				<bibliomixed>
					<abbrev>XML Schema Datatypes</abbrev> P. Biron, A. Malhotra
					<citetitle><ulink>XML Schema Part 2: Datatypes Second Edition</ulink></citetitle>.
					W3 Recommendation. 2004
				</bibliomixed>

				<bibliomixed>
					<abbrev>XML Signature</abbrev> D. Eastlake, J. Reagle, D. Solo, F. Hirsch, T. Roessler
					<citetitle><ulink>XML Signature Syntax and Processing</ulink></citetitle>.
					W3 Recommendation. 2008
				</bibliomixed>

				<bibliomixed>
					<abbrev>xml:id</abbrev> J. Marsh, D. Veillard, N. Walsh
					<citetitle><ulink>xml:id</ulink></citetitle>.
					W3 Recommendation. 2005
				</bibliomixed>

			</bibliodiv>

		</bibliography>
	</section>

	<section>
		<title>Non-Normative References</title>

		<bibliography>
			<title>

			<bibliodiv>
				<bibliomixed>
					<abbrev>Atom 1.0</abbrev> M. Nottingham, R. Sayre
					<citetitle><ulink>The Atom Syndication Format</ulink></citetitle>.
					IETF (Internet Engineering Task Force). 2005.
				</bibliomixed>

				<bibliomixed>
					<abbrev>HTML 4.01</abbrev> D. Raggett, A. Le Hors, I. Jacobs
					<citetitle><ulink>HTML 4.01 Specification</ulink></citetitle>.
					W3C Recommendation. 1999
				</bibliomixed>

				<bibliomixed>
					<abbrev>XRI Resolution 2.0</abbrev> OASIS Committee Draft 03,
					<citetitle><ulink>Extensible Resource Identifier (XRI) Resolution V2.0</ulink></citetitle>.
					February 2008.
				</bibliomixed>
			</bibliodiv>

		</bibliography>

	</section>

	<section>
		<title>Schema Organization and Namespaces</title>

		<para>
			The XRD document structure is defined in a schema associated with the following XML namespace:
			<programlisting>http://docs.oasis-open.org/ns/xri/xrd-1.0</programlisting>
		</para>

		<para>
			The schema for <xref> (the &quot;xml:&quot; namespace) is imported into the XRD schema, which is
			associated with the following XML namespace:
			<programlisting>http://www.w3.org/XML/1998/namespace</programlisting>
		</para>

		<para>
			The following <xref> fragment defines the XML namespaces and other header
			information for the XRD schema:

			<programlisting><![CDATA[<schema targetNamespace="http://docs.oasis-open.org/ns/xri/xrd-1.0"
  xmlns="http://www.w3.org/2001/XMLSchema"
  xmlns:xrd="http://docs.oasis-open.org/ns/xri/xrd-1.0"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified"
  blockDefault="substitution"
  version="1.0">

    <import namespace="http://www.w3.org/XML/1998/namespace"
        schemaLocation="http://www.w3.org/2001/xml.xsd"/>

    <annotation>
        <documentation>
            Document identifier: xrd-schema-1.0
            Location: http://docs.oasis-open.org/xri/xrd/v1.0/
        </documentation>
    </annotation>
...
</schema>
]]></programlisting>
		</para>

		<para>
			The location of the normative XML Schema file for an XRD document as defined by this specification is:
			<literal><ulink></literal>
		</para>

		<para>
			The following URI will always reference the latest version of this file:
			<ulink><literal>&latest-file;&latest-loc;&name;/v&version;/&name;-&version;.xsd</literal></ulink>
		</para>

	</section>


	<section>
		<title>Common Data Types</title>

		<para>
			The following sections define how to use and interpret common data types that appear throughout the XRD
			schema.
		</para>

		<section>
			<title>String Values</title>

			<para>
				All XRD string values have or extend the type <sgmltag>xs:string</sgmltag>, which is
				built in to the W3C <xref> specification. Unless otherwise noted in this
				specification or particular profiles, all strings in XRD documents <phrase>must</phrase>
				consist of at least one non-whitespace character (whitespace is defined in section 2.3 of
				<xref>).  
			</para>

			<para>
				The following schema fragment defines the <sgmltag>xrd:string</sgmltag> complex type, which extends 
				<sgmltag>xs:string</sgmltag> to allow for artibtrary attributes (see 
				<xref>):

				<programlisting><![CDATA[<complexType name="string">
    <simpleContent>
        <extension base="string">
            <anyAttribute namespace="##other" processContents="lax"/>
        </extension>
    </simpleContent>
</complexType>]]></programlisting>
			</para>
		</section>

		<section>
			<title>URI Values</title>

			<para>
				All XRD URI reference values have or extend the type <sgmltag>xs:anyURI</sgmltag>, 
				which is built in to the W3C <xref> specification. Unless otherwise noted 
				in this specification or particular profiles, all URIs in XRD documents 
				<phrase>must</phrase> consist of at least one non-whitespace character.
			</para>

			<para>
				The following schema fragment defines the <sgmltag>xrd:anyURI</sgmltag> complex type, which extends 
				<sgmltag>xs:anyURI</sgmltag> to allow for artibtrary attributes (see
				<xref>):

				<programlisting><![CDATA[<complexType name="anyURI">
    <simpleContent>
        <extension base="anyURI">
            <anyAttribute namespace="##other" processContents="lax"/>
        </extension>
    </simpleContent>
</complexType>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Time Values</title>

			<para>
				All XRD time values have the type <sgmltag>xs:dateTime</sgmltag>, which is built in
				to the W3C <xref> specification, and <phrase>must</phrase>
				be expressed in UTC form, with no time zone component (represented by the UTC 'Z' timezone). XRD
				providers <phrase>must not</phrase> generate time instants that specify leap seconds.
			</para>
		</section>
	</section>

</section>

<section>
	<title>XRD Document Structure</title>

	<para>
		XRD provides a simple and extensible XML format for describing resources. An XRD document may describe the
		properties of the resource itself, as well as the relations the resource has with other resources.  XRD
		builds directly on the typed link relations framework defined by <xref>, and used by
		<xref>, <xref>, and other protocols.
	</para>

	<para>
		The XRD schema defines only the elements necessary to support the most common use cases, with the
		explicit intention that applications will extend XRD as defined in <xref>
		to include any other metadata about the resources and links they describe.
	</para>

	<section>
		<title>XRD Elements</title>
		
		<para>
			The XRD elements provide information about the resource described by the XRD document
			and list its properties.  They also provide administrative information as to how
			the document should be cached, as well as information necessary for the authentication and
			trust verification of the XRD document.
		</para>

		<section>
			<title>Element <sgmltag>XRD</sgmltag></title>
			<para>
				The <sgmltag>XRD</sgmltag> element encapsulates the entire resource descriptor, and is
				most commonly the root element of the document. It contains the following attributes and elements:

				<variablelist>

					<varlistentry>
						<term><sgmltag>xml:id</sgmltag> [Optional]</term>
						<listitem>
							<para>
								This attribute, of type <sgmltag>xs:ID</sgmltag>, is defined by
								<xref>.  It provides a unique identifier for this XRD, and is most
								commonly used as a <link>signature reference</link>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Expires</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								Specifies when this document expires, as described in 
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Subject</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								Provides the identifier of the resource described by this XRD.
								See <xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Alias</sgmltag> [Zero or More]</term>
						<listitem>
							<para>
								Provides an additional identifier for the resoure described by this XRD.  See
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Type</sgmltag> [Zero or More]</term>
						<listitem>
							<para>
								Declares a property of the resource described by this XRD, as described in
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Link</sgmltag> [Zero or More]</term>
						<listitem>
							<para>
								Identifies another resource which is related to the resource described by this XRD, and
								describes the semantics of that relation.  See <xref>.
							</para>
						</listitem>
					</varlistentry>
					
					<varlistentry>
						<term><sgmltag>ds:Signature</sgmltag> [Zero or More]</term>
						<listitem>
							<para>
								This is an XML Signature, included from the <xref> schema, that
								protects the integrity of the document, as described in
								<xref>.
							</para>

							<para>
								Although <xref> allows a single document to contain multiple 
								signatures, the signing profile described in <xref> requires 
								only a single <sgmltag>Signature</sgmltag> element.  Use of multiple
								<sgmltag>Signature</sgmltag> elements in an XRD document is therefore
								undefined.  In order to aid certain types of XRD consumers, it is
								<phrase>recommended</phrase> that XRD providers place the
								<sgmltag>Signature</sgmltag> element of a signed XRD as near the
								beginning of the document as possible.
							</para>
						</listitem>
					</varlistentry>

				</variablelist>
			</para>

			<para>
				The following schema fragment defines the <sgmltag>XRD</sgmltag> element and its
				<sgmltag>XRDType</sgmltag> complex type:

				<programlisting><![CDATA[<element name="XRD" type="xrd:XRDType"/>
<complexType name="XRDType">
    <sequence>
        <element ref="xrd:Expires" minOccurs="0"/>
        <element ref="xrd:Subject" minOccurs="0"/>
        <choice minOccurs="0" maxOccurs="unbounded">
            <element ref="xrd:Alias"/>
            <element ref="xrd:Type"/>
            <element ref="xrd:Link"/>
            <any namespace="##other" processContents="lax"/>
        </choice>
    </sequence>
    <attribute ref="xml:id" use="optional"/>
    <anyAttribute namespace="##other" processContents="lax"/>
</complexType>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Expires</sgmltag></title>
			<para>
				This dateTime value indicates the time instant after which the document is no longer valid.  The value
				<phrase>must</phrase> use the UTC &quot;Z&quot; time zone, as specified in
				<xref>, and <phrase>must not</phrase> use fractional seconds.
				The semantics of this element apply to the metadata available in the XRD document and are independent
				of the caching semantics of any transport protocol used to retrieve the document.
			</para>
			<para>
				The following schema fragment defines the <sgmltag>Expires</sgmltag> element and its
				<sgmltag>ExpiresType</sgmltag> complex type:
				<programlisting><![CDATA[<element name="Expires" type="xrd:ExpiresType"/>
<complexType name="ExpiresType">
    <simpleContent>
        <extension base="dateTime">
            <anyAttribute namespace="##other" processContents="lax"/>
        </extension>
    </simpleContent>
</complexType>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Subject</sgmltag></title>
			<para>
				<sgmltag>Subject</sgmltag> is a URI value which identifies a resource.  This value
				<phrase>must</phrase> be an absolute URI.
			</para>

			<para>
				The following schema fragment defines the <sgmltag>Subject</sgmltag> element.
				<programlisting><![CDATA[<element name="Subject" type="xrd:anyURI"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Alias</sgmltag></title>
			<para>
				This URI value provides an additional identifier for the resource described by the XRD.  This value 
				<phrase>must</phrase> be an absolute URI.
			</para>

			<para>
				The following schema fragment defines the <sgmltag>Alias</sgmltag> element:
				<programlisting><![CDATA[<element name="Alias" type="xrd:anyURI"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Type</sgmltag></title>
			<para>
				The <sgmltag>Type</sgmltag> element declares a property of the resource
				described by the XRD using a URI value.  The meaning of the <sgmltag>Type</sgmltag> value is
				application-specific, and is used by the XRD provider to describe the resource to consumers familiar
				with the type identifier.  <sgmltag>Type</sgmltag> contains the following attributes:

				<variablelist>
					<varlistentry>
						<term><sgmltag>required</sgmltag> [Optional]</term>
						<listitem>
							<para>
								The <sgmltag>required</sgmltag> attribute is a boolean used to
								indicate to a consumer that some pre-defined knowledge is required in order to interact
								with the resource, without which undefined or potentially harmful side-effects can
								occur.
							</para>
							<para>
								If the <sgmltag>required</sgmltag> attribute is omitted or explicitly
								set to <sgmltag>false</sgmltag>, an XRD consumer
								<phrase>should</phrase> ignore any
								<sgmltag>Type</sgmltag> elements with values it does not recognize,
								and interact with the resource based on the values it does recognize.  If the
								<sgmltag>required</sgmltag> attribute is set to
								<sgmltag>true</sgmltag>, an XRD consumer
								<phrase>must not</phrase> interact with the resource if it does not
								recognize the type identifier.  The <sgmltag>required</sgmltag>
								attribute <phrase>should not</phrase> be used unless such harmful
								side-effects are likely.
							</para>
						</listitem>
					</varlistentry>

				</variablelist>
			</para>
			<para>
				The following schema fragment defines the <sgmltag>Type</sgmltag> element and its
				<sgmltag>TypeType</sgmltag> complex type:
				<programlisting><![CDATA[<element name="Type" type="xrd:TypeType"/>
<complexType name="TypeType">
    <simpleContent>
        <extension base="xrd:anyURI">
            <attribute name="required" type="boolean" use="optional"/>
        </extension>
    </simpleContent>
</complexType>]]></programlisting>
			</para>
		</section>

	</section>

	<section>
		<title>Linked Resource Elements</title>

		<para>
			One of the primary uses of XRD is to describe the relations the resource described by the XRD has with
			other resources.  The following elements identify and describe these related resources.
		</para>

		<section>
			<title>Element <sgmltag>Link</sgmltag></title>
			<para>
				The <sgmltag>Link</sgmltag> element serves as a container for metadata about a
				relation to a related resource, and carries similar semantics as the <xref> Link
				element, the <xref> Link element, and the
				<link>HTTP Link Header</link>.  The one distinction is that link relations
				described by the <sgmltag>Link</sgmltag> element are between the resource described
				by the XRD (referred to as the <glossterm>context resource</glossterm> by
				<xref>) and the linked resources (referred to as the
				<glossterm>target resource</glossterm> by <xref>), and not between the XRD
				document itself and the linked resource.  <sgmltag>Link</sgmltag> has the following
				elements and attributes:

				<variablelist>

					<varlistentry>
						<term><sgmltag>Rel</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								Defines the semantics of the link relation.  See <xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>MediaType</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								Provides a hint at the media type of the linked resource. See
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>URI</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								The URI of the linked resource.  Only <sgmltag>URI</sgmltag> or
								<sgmltag>URITemplate</sgmltag> may be present, but not both.  See
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>URITemplate</sgmltag> [Zero or One]</term>
						<listitem>
							<para>
								Provides a template which can be used to obtain the URI of the linked resource.
								Only <sgmltag>URI</sgmltag> or
								<sgmltag>URITemplate</sgmltag> may be present, but not both.  See
								<xref>.
							</para>
						</listitem>
					</varlistentry>

					<varlistentry>
						<term><sgmltag>Title</sgmltag> [Zero or More]</term>
						<listitem>
							<para>
								Provides a human-readable description of the linked resource.  See 
								<xref>.
							</para>
						</listitem>
					</varlistentry>

				</variablelist>
			</para>
			<para>
				The following schema fragment defines the <sgmltag>Link</sgmltag> element and its
				<sgmltag>LinkType</sgmltag> complex type:
				<programlisting><![CDATA[<element name="Link" type="xrd:LinkType"/>
<complexType name="LinkType">
    <sequence>
        <element ref="xrd:Rel" minOccurs="0"/>
        <element ref="xrd:MediaType" minOccurs="0"/>
        <choice minOccurs="0">
            <element ref="xrd:URI"/>
            <element ref="xrd:URITemplate"/>
        </choice>
        <choice minOccurs="0" maxOccurs="unbounded">
            <element ref="xrd:Title"/>
            <any namespace="##other" processContents="lax"/>
        </choice>
    </sequence>
    <anyAttribute namespace="##other" processContents="lax"/>
</complexType>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Rel</sgmltag></title>
			<para>
				This URI value defines the semantics of the relation between the resource described by the XRD and
				the linked resource.  <sgmltag>Rel</sgmltag> is semantically and syntactically equivalent to the Link
				Relation Types defined in <xref>, with the exception that it only allows for a single relation type
        and does not allow for multiple space delimited values.  It is important to note that this value
				does not identify any property of the linked resource.  Rather, it describes only how the linked
				resource is related to the resource described by the XRD.
			</para>
			<para>
				The following schema fragment defines the <sgmltag>Rel</sgmltag> element:
				<programlisting><![CDATA[<element name="Rel" type="xrd:anyURI"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>MediaType</sgmltag></title>
			<para>
				This string value provides a hint as to the media type of the linked resource.  The value of this
				element <phrase>must</phrase> be of the form of a media type defined in
				<xref>.  The IANA media types registry can be found at
				<ulink>.
			</para>
			<para>
				The following schema fragment defines the <sgmltag>MediaType</sgmltag> element:
				<programlisting><![CDATA[<element name="MediaType" type="xrd:string"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>URI</sgmltag></title>
			<para>
				The <sgmltag>URI</sgmltag> element provides the URI of the linked resource. If no
				<sgmltag>URI</sgmltag> element is defined, it is assumed the URI can be obtained from
				a <sgmltag>URITemplate</sgmltag> element or by other means outside this specification.
			</para>
			<para>
				The following schema fragment defines the <sgmltag>URI</sgmltag> element:
				<programlisting><![CDATA[<element name="URI" type="xrd:anyURI"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>URITemplate</sgmltag></title>
			<para>
				URI Templates provide a mechanism for URI construction, taking a list of variables as input and
				producing a URI string as an output.  The template syntax and vocabulary are dependent upon the
        combination of the application through which the XRD document is obtained, and the link relation type
        indicated by the <sgmltag>Rel</sgmltag> child element of the corresponding
        <sgmltag>Link</sgmltag>.  Applications that wish to utilize the template mechanism
        need to define the variable vocabulary for each relation type, as well as the template syntax and
        processing rules.
      </para>

      <para>
        If a template uses an unknown syntax or contains unknown variable names (without rules on how to
        handle such variables), the parent <sgmltag>Link</sgmltag> element
        <phrase>should</phrase> be ignored.
      </para>
      
			<para>
				The following schema fragment defines the <sgmltag>URITemplate</sgmltag> element:
				<programlisting><![CDATA[<element name="URITemplate" type="xrd:string"/>]]></programlisting>
			</para>
		</section>

		<section>
			<title>Element <sgmltag>Title</sgmltag></title>
			<para>
				This string value provides a human-readable description for the linked resource.  The semantics of
				this value are intended only for human consumption and <phrase>must not</phrase>
				be used to imply any additional meaning.
				<sgmltag>Title</sgmltag> contains the following attributes:

				<variablelist>
					<varlistentry>
						<term><sgmltag>xml:lang</sgmltag> [Optional]</term>
						<listitem>
							<para>
								This attribute is defined by the <xref> specification, and is used to 
								identify the natural language in which this element's content is written.
							</para>
						</listitem>
					</varlistentry>
				</variablelist>
			</para>
			<para>
				The following schema fragment defines the <sgmltag>Title</sgmltag> element and its
				<sgmltag>TitleType</sgmltag> complex type:
				<programlisting><![CDATA[<element name="Title" type="xrd:TitleType"/>
<complexType name="TitleType">
    <simpleContent>
        <extension base="xrd:string">
            <attribute ref="xml:lang" use="optional"/>
        </extension>
    </simpleContent>
</complexType>
]]></programlisting>
			</para>
		</section>

	</section>
</section>

<section>
	<title>XRD Extensibility</title>

	<para>
		The XRD schema defines only the elements necessary to support the most common use cases, with the
		explicit intention that applications will extend XRD to include any other metadata about the resources
		they describe.  XRD documents can be extended by providing custom, meaningful values for certain URI-based
		elements, as well as by extending the XML elements directly.
	</para>

	<section>
		<title>Identifier Extension</title>

		<para>
			XRD uses URI-based identifiers for <link>describing resources</link> as well
			as for <link>describing the relations</link> between resources. It is
			expected that applications will use appropriate established URI identifiers for these purposes, or
			define new identifiers as necessary.  It is <phrase>recommended</phrase> that any new
			identifiers be defined in a formal specification of use. In no case should the meaning of a given URI
			used as such an identifier significantly change, or be used to mean two different things.
		</para>
		<para>
			New <link>relation types</link> between resources <phrase>must</phrase>
			follow the extensibility and registration requirements defined in <xref>.
		</para>
	</section>

	<section>
		<title>Schema Extension</title>

		<para>
			The XRD schema allows for the inclusion of attributes from arbitrary namespaces (except for the XRD
			namespace) in almost all XRD elements.  Additionally, the <sgmltag>XRD</sgmltag>
			and <sgmltag>Link</sgmltag> elements allow for the inclusion of child elements from
			arbitrary namespaces (except for the XRD namespace).
		</para>

		<para>
			XML extensions <phrase>must not</phrase> require new interpretation of elements defined
			in this document. If an extension attribute or element is present, an XRD consumer
			<phrase>must</phrase> be able to ignore it and still correctly process the XRD document.
		</para>

	</section>

</section>

<section>
	<title>Processing XRD Documents</title>

	<para>
		Once an XRD document has been obtained, the consumer typically inspects the list of resource properties
		looking for known values, and performs resource selection to find the links relevant to it.  The
		selection process involves iterating through the list of linked resource descriptions and filtering them
		based on various metadata.
	</para>

	<section>
		<title>Linked Resource Selection</title>

		<para>
			Link selection criteria is determined by the XRD consumer's needs, and is based on the presence, absence, or
			value of <sgmltag>Link</sgmltag> element attributes or child elements.  The selection criteria
			may be any combination of metadata describing the linked resources such as
			<sgmltag>Rel</sgmltag>, <sgmltag>MediaType</sgmltag>,
			<sgmltag>URI</sgmltag>, or non-XRD extension elements or attributes.  For example, a consumer
			might look for all linked resources with an image media-type, a linked resource with a specific authentication
			relation, or a linked resource with a URI matching a pattern.
		</para>

		<para>
			Selection based on multiple criteria can be handled by performing multiple selections. Each selection is
			assigned preference order based on the consumer's needs. The selection results are compared to determine
			the most desired set. For example, if a consumer is looking for all image resources, giving higher
			preference to the JPEG formats over PNG, it will perform two selection processes, one for each media-type,
			and assign the resources in the JPEG set a higher preference value.
		</para>

		<para>
			If multiple <sgmltag>Link</sgmltag> elements are matched by a given selection criteria,
			they <phrase>must</phrase> be processed in the order in which they appear in the XRD
			document.  Therefore, XRD providers <phrase>may</phrase> indicate element priority by
			placing them in a specific order.  If the first <sgmltag>Link</sgmltag> is subsequently
			disqualified from the set of selected elements, the consumer <phrase>should</phrase>
			attempt to select the next qualified element in document order.  This process 
			<phrase>should</phrase> be continued for all other qualified 
			<sgmltag>Link</sgmltag> elements until success is achieved or all elements are exhausted.
		</para>
	</section>

</section>

<section>
	<title>XRD Signature</title>

	<para>
		An XRD provider <phrase>may</phrase> digitally sign an XRD document in order to enable XRD
		consumers to verify the authenticity and integrity of the document.  The <xref>
		specification defines a general XML syntax for signing data that includes many options for flexibility. This
		section details constraints on these options so that XRD consumers do not have to implement the full generality
		of XML Signature processing.
	</para>

	<section>
		<title>Signing Formats and Algorithms</title>

		<para>
			While XML Signature has three ways of relating a signature to a document (enveloping, enveloped, and
			detached), XRD documents <phrase>must</phrase> use enveloped signatures when signing.  Any
			algorithm defined for use with the XML Signature specification <phrase>may</phrase> be used.
		</para>

	</section>

	<section>
		<title>References</title>

		<para>
			XRD documents <phrase>must</phrase> supply a value for the
			<sgmltag>xml:id</sgmltag> attribute on the root element of the XRD being signed. The
			XRD's root element may or may not be the root element of the actual XML document containing the signed XRD
			(e.g., it might be included within another document schema).
		</para>

		<para>
			Signatures <phrase>must</phrase> contain a single
			<sgmltag>ds:Reference</sgmltag> containing a same-document reference to the
			<sgmltag>xml:id</sgmltag> attribute value of the root element of the XRD being signed.
			For example, if the <sgmltag>xml:id</sgmltag> attribute value is
			<sgmltag>foo</sgmltag>, then the <sgmltag>URI</sgmltag> attribute in
			the <sgmltag>ds:Reference</sgmltag> element <phrase>must</phrase> be
			<sgmltag>#foo</sgmltag>. 
		</para>
	</section>

	<section>
		<title>Canonicalization</title>

		<para>
			XRD implementations <phrase>must</phrase> use <xref>, with or without
			comments, both in the <sgmltag>ds:CanonicalizationMethod</sgmltag> element of
			<sgmltag>ds:SignedInfo</sgmltag>, and as a
			<sgmltag>ds:Transform</sgmltag> algorithm.  Use of Exclusive Canonicalization facilitates
			the verification of signatures created over XRD instances when placed into a different XML context than
			present during signing.
		</para>

		<para>
			Note that use of this algorithm alone does not guarantee that a particular signed object can be moved from
			one context to another safely, nor is that a requirement of signed XRD instances in general, though it
			<phrase>may</phrase> be required by particular profiles.
		</para>
	</section>

	<section>
		<title>Transforms</title>

		<para>
			Signatures in XRD documents <phrase>must not</phrase> contain transforms other than the
			enveloped signature transform (with the identifier
			<literal>http://www.w3.org/2000/09/xmldsig#enveloped-signature</literal>) or the exclusive canonicalization
			transforms (with the identifier <literal>http://www.w3.org/2001/10/xml-exc-c14n#</literal> or
			<literal>http://www.w3.org/2001/10/xml-exc-c14n#WithComments</literal>).
		</para>
	</section>

	<section>
		<title>KeyInfo</title>

		<para>
			XML Signature defines usage of the <sgmltag>ds:KeyInfo</sgmltag> element. XRD does not
			require the use of <sgmltag>ds:KeyInfo</sgmltag>, nor does it impose any restrictions on
			its use. Therefore, <sgmltag>ds:KeyInfo</sgmltag> <phrase>may</phrase> be
			absent.
		</para>
	</section>

</section>

<section>
	<title>XRD Sequence</title>

	<para>
		In cases where an application requires a sequence of <sgmltag>XRD</sgmltag> elements in a single XML
		document, this specification defines an alternate top-level element, <sgmltag>XRDS</sgmltag>.
		Its semantics are very simple: it contains a sequence of <sgmltag>XRD</sgmltag> elements, one
		optional attribute, and is not otherwise extensible.

			<variablelist>

				<varlistentry>
					<term><sgmltag>ref</sgmltag> [Optional]</term>
					<listitem>
						<para>
							This attribute, of type <sgmltag>xs:anyURI</sgmltag>, identfies the
							resource described by the sequence of <sgmltag>XRD</sgmltag> elements.
						</para>
					</listitem>
				</varlistentry>

				<varlistentry>
					<term><sgmltag>XRD</sgmltag> [One or More]</term>
					<listitem>
						<para>
							See <xref>.
						</para>
					</listitem>
				</varlistentry>

			</variablelist>
	</para>

	<para>
		The following schema fragment defines the <sgmltag>XRDS</sgmltag> element and its
		<sgmltag>XRDSType</sgmltag> complex type:

		<programlisting><![CDATA[<element name="XRDS" type="xrd:XRDSType"/>
<complexType name="XRDSType">
    <sequence>
        <element ref="xrd:XRD" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute name="ref" type="anyURI"/>
</complexType>]]></programlisting>
	</para>

	<para>
		IMPORTANT: In past practice, <sgmltag>XRDS</sgmltag> was often used as the root element even
		if it contained only a single <sgmltag>XRD</sgmltag>. That practice is now deprecated. The
		<sgmltag>XRDS</sgmltag> element <phrase>should not</phrase> be used unless it
		contains a sequence of two or more <sgmltag>XRD</sgmltag> elements.
	</para>
</section>

<section>
	<title>Conformance</title>
	<para>
		An implementation is a <glossterm>conforming</glossterm> XRD consumer if the implementation meets the
		conditions in <xref>.  An implementation is a
		<glossterm>conforming</glossterm> XRD provider if the implementation meets the conditions in
		<xref>.  An implementation may serve as both an XRD consumer and provider.
	</para>

	<section>
		<title>XRD Consumer</title>
		<para>
			An implementation conforms to this specification as an XRD consumerif it meets the following conditions:

			<orderedlist>
				<listitem>
					<para>
						It <phrase>must</phrase> implement parsing of XRD documents which conform to
						the XRD schema as specified in <xref>.
					</para>
				</listitem>
				<listitem>
					<para>
						It <phrase>must</phrase> conform to the processing rules as specified in
						<xref>.
					</para>
				</listitem>
				<listitem>
					<para>
						In calculating <link>XRD Signatures</link>, it
						<phrase>should</phrase> support the use of RSA signing and verification for
						public key operations in accordance with the signing algorithm identified by
						<literal>http://www.w3.org/2000/09/xmldsig#rsa-sha256</literal>.
					</para>
				</listitem>
			</orderedlist>
		</para>
	</section>

	<section>
		<title>XRD Provider</title>
		<para>
			An implementation conforms to this specification as an XRD provider if it meets the following
			conditions:

			<orderedlist>
				<listitem>
					<para>
						Any published XRD documents <phrase>must</phrase> conform to the XRD schema as
						specified in <xref>.
					</para>
				</listitem>
				<listitem>
					<para>
						Any published XRD documents that are digitally signed using <xref> 
						<phrase>must</phrase> conform to the signature profile specified in 
						<xref>.
					</para>
				</listitem>
			</orderedlist>
		</para>
	</section>
</section>

<appendix>
	<title>Acknowledgments</title>

	<para>
		The editors would like to thank the following current and former members of the OASIS XRI TC
		for their particular contributions to this and previous versions of this specification:
	</para>

	<itemizedlist>
		<listitem><para>Dirk Balfanz, Google</para></listitem>
		<listitem><para>Bill Barnhill, Booz Allen Hamilton</para></listitem>
		<listitem><para>John Bradley</para></listitem>
		<listitem><para>Scott Cantor, Internet2</para></listitem>
		<listitem><para>Les Chasen, NeuStar</para></listitem>
		<listitem><para>Steven Churchill, XDI.org</para></listitem>
		<listitem><para>Brian Eaton, Google</para></listitem>
		<listitem><para>George Fletcher, AOL</para></listitem>
		<listitem><para>Victor Grey, Planetwork</para></listitem>
		<listitem><para>Joseph Holsten</para></listitem>
		<listitem><para>Nika Jones</para></listitem>
		<listitem><para>Breno de Medeiros, Google</para></listitem>
		<listitem><para>Bob Morgan, Internet2</para></listitem>
		<listitem><para>Markus Sabadello, XDI.org</para></listitem>
		<listitem><para>Nat Sakimura, NRI</para></listitem>
		<listitem><para>Tatsuki Sakushima, NRI</para></listitem>
		<listitem><para>William Tan, NeuStar</para></listitem>
		<listitem><para>Gabe Wachob</para></listitem>
	</itemizedlist>

	<para>
		The editors would also like to acknowledge the contributions of the other members of the OASIS
		XRI Technical Committee, whose other voting members at the time of publication were:
	</para>

	<itemizedlist>
		<listitem><para>Giovanni Bartolomeo, University of Rome &quot;Tor Vergata&quot;</para></listitem>
		<listitem><para>Owen Davis, Planetwork</para></listitem>
		<listitem><para>Jeff Hodges</para></listitem>
		<listitem><para>Fen Labalme, Planetwork</para></listitem>
		<listitem><para>Ben Laurie, Google</para></listitem>
		<listitem><para>XiaoDong Lee, China Internet Network Information Center</para></listitem>
		<listitem><para>Nick Nicholas, Australian Department of Education</para></listitem>
		<listitem><para>Marty Schleiff, The Boeing Company</para></listitem>
		<listitem><para>Paul Trevithick</para></listitem>
	</itemizedlist>

</appendix>

<appendix>
	<title>XRD Examples</title>

	<example>
		<title>Simple XRD Example</title>
		<programlisting><![CDATA[<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
  <Expires>1970-01-01T00:00:00Z</Expires>
  <Subject>http://example.com/gpburdell</Subject>
  <Link>
    <Rel>http://spec.example.net/auth/1.0</Rel>
    <URI>http://services.example.com/auth</URI>
  </Link>
  <Link>
    <Rel>http://spec.example.net/photo/1.0</Rel>
    <MediaType>image/jpeg</MediaType>
    <URI>http://photos.example.com/gpburdell.jpg</URI>
  </Link>
</XRD>
]]></programlisting>
	</example>

	<example>
		<?dbfo?>
		<title>Signed XRD Example</title>

		<para>
			Following is an example of a signed XRD document.  Line breaks have been added for readability; the
			signatures are not valid and cannot be successfully verified.
		</para>

		<programlisting><![CDATA[<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xml:id="foo">
  <Expires>1970-01-01T00:00:00Z</Expires>
  <Subject>http://example.com/gpburdell</Subject>
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
      <ds:CanonicalizationMethod
        Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
      <ds:SignatureMethod
        Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
      <ds:Reference URI="#foo">
        <ds:Transforms>
          <ds:Transform
           Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
          <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
            <InclusiveNamespaces PrefixList="#default xrd ds xs xsi"
              xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"/>
          </ds:Transform>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
        <ds:DigestValue>TCDVSuG6grhyHbzhQFWFzGrxIPE=</ds:DigestValue>
      </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>
      x/GyPbzmFEe85pGD3c1aXG4Vspb9V9jGCjwcRCKrtwPS6vdVNCcY5rHaFPYWkf+5
      EIYcPzx+pX1h43SmwviCqXRjRtMANWbHLhWAptaK1ywS7gFgsD01qjyen3CP+m3D
      w6vKhaqledl0BYyrIzb4KkHO4ahNyBVXbJwqv5pUaE4=
    </ds:SignatureValue>
    <ds:KeyInfo>
      <ds:X509Data>
        <ds:X509Certificate>
          MIICyjCCAjOgAwIBAgICAnUwDQYJKoZIhvcNAQEEBQAwgakxCzAJBgNVBAYTAlVT
          MRIwEAYDVQQIEwlXaXNjb25zaW4xEDAOBgNVBAcTB01hZGlzb24xIDAeBgNVBAoT
          F1VuaXZlcnNpdHkgb2YgV2lzY29uc2luMSswKQYDVQQLEyJEaXZpc2lvbiBvZiBJ
          bmZvcm1hdGlvbiBUZWNobm9sb2d5MSUwIwYDVQQDExxIRVBLSSBTZXJ2ZXIgQ0Eg
          LS0gMjAwMjA3MDFBMB4XDTAyMDcyNjA3Mjc1MVoXDTA2MDkwNDA3Mjc1MVowgYsx
          CzAJBgNVBAYTAlVTMREwDwYDVQQIEwhNaWNoaWdhbjESMBAGA1UEBxMJQW5uIEFy
          Ym9yMQ4wDAYDVQQKEwVVQ0FJRDEcMBoGA1UEAxMTc2hpYjEuaW50ZXJuZXQyLmVk
          dTEnMCUGCSqGSIb3DQEJARYYcm9vdEBzaGliMS5pbnRlcm5ldDIuZWR1MIGfMA0G
          CSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZSAb2sxvhAXnXVIVTx8vuRay+x50z7GJj
          IHRYQgIv6IqaGG04eTcyVMhoekE0b45QgvBIaOAPSZBl13R6+KYiE7x4XAWIrCP+
          c2MZVeXeTgV3Yz+USLg2Y1on+Jh4HxwkPFmZBctyXiUr6DxF8rvoP9W7O27rhRjE
          pmqOIfGTWQIDAQABox0wGzAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIFoDANBgkq
          hkiG9w0BAQQFAAOBgQBfDqEW+OI3jqBQHIBzhujN/PizdN7s/z4D5d3pptWDJf2n
          qgi7lFV6MDkhmTvTqBtjmNk3No7v/dnP6Hr7wHxvCCRwubnmIfZ6QZAv2FU78pLX
          8I3bsbmRAUg4UP9hH6ABVq4KQKMknxu1xQxLhpR1ylGPdiowMNTrEG8cCx3w/w==
        </ds:X509Certificate>
      </ds:X509Data>
    </ds:KeyInfo>
  </ds:Signature>
  <Link>
    <Rel>http://spec.example.net/auth/1.0</Rel>
    <URI>http://services.example.com/auth</URI>
  </Link>
</XRD>
]]></programlisting>
	</example>

</appendix>

<appendix>
	<title>Media Type Definition for <literal>application/xrd+xml</literal></title>

	<para>
		This section is prepared in anticipation of filing a media type registration meeting the requirements of
		<xref>.
	</para>

	<variablelist>
		<varlistentry>
			<term>Type name:</term>
			<listitem>
				<para><code>application</code></para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Subtype name:</term>
			<listitem>
				<para><code>xrd+xml</code></para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Required parameters:</term>
			<listitem>
				<para>None</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Optional paramters:</term>
			<listitem>
				<para>
					&quot;charset&quot;:  This parameter has identical semantics to the charset
					parameter of the &quot;application/xml&quot; media type as specified in <xref>.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Encoding considerations:</term>
			<listitem>
				<para>
					Identical to those of <code>application/xml</code> as described by <xref>
					section 3.2.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Security considerations:</term>
			<listitem>
				<para>
					As defined in this specification. In addition, as this media type uses the
					&quot;+xml&quot; convention, it shares the same security considerations as described in
					<xref>, Section 10.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Interoperability considerations:</term>
			<listitem>
				<para>There are no known interoperability issues.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Published specification:</term>
			<listitem>
				<para>This specification</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Applications that use this media type:</term>
			<listitem>
				<para>No known applications currently use this media type.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Magic Number:</term>
			<listitem>
				<para>As specified for <xref> section 3.2.</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>File Extension:</term>
			<listitem>
				<para>
					None.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Fragnent Identifiers:</term>
			<listitem>
				<para>
					As specified for <xref> section 5.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Base URI:</term>
			<listitem>
				<para>
					As specified for <xref> section 6.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Macintosh File Type code:</term>
			<listitem>
				<para>
					TEXT.
				</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Person&amp; email address to contact for further information: </term>
			<listitem>
				<para>Eran Hammer-Lahav, eran@hueniverse.com</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Intended usage:</term>
			<listitem>
				<para>COMMON</para>
			</listitem>
		</varlistentry>

		<varlistentry>
			<term>Author / Change controller:</term>
			<listitem>
				<para>OASIS XRI Technical Comittee</para>
			</listitem>
		</varlistentry>

	</variablelist>

</appendix>

<appendix>
	<title>Revision History</title>

	<table>
		<tgroup>
			<thead>
				<row>
					<entry>Revision</entry>
					<entry>Date</entry>
					<entry>Editor</entry>
					<entry>Changes Made</entry>
				</row>
			</thead>
			<tbody>
				<row>
					<entry>Committee Draft 01</entry>
					<entry>22 October 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Approved by the XRI Technical Committee as Committee Draft 01.</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 09</entry>
					<entry>15 October 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Cleanup references section (some where no longer referenced at all, some were only informative).</para></listitem>
							<listitem><para>Fix acknowledgements to properly include XRI Resolution 2.0 editors</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 08</entry>
					<entry>14 October 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Remove &quot;Subject&quot; &quot;ds:keyInfo&quot; as child elements of Link.  These only had clear meaning in the context of a linked XRD.</para></listitem>
							<listitem><para>Remove default URI template syntax and change text to make it application+relation specific</para></listitem>
							<listitem><para>Clarified that rel values are not allowed to contain space-delimited relation types</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 07</entry>
					<entry>12 October 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>
									Remove &quot;Extensions&quot; element. Revert to previous extension model, resolving the 
									&quot;ambiguous schema&quot; issue by simply not defining the signature elements in the XRD schema.
							</para></listitem>
							<listitem><para>Add &quot;Title&quot; element under &quot;Link&quot; for human readable name of linked resource</para></listitem>
							<listitem><para>Add signature algorithm support to conformance</para></listitem>
							<listitem><para>
									Greatly reduce complexity of Link element.  Reduce cardinality of Rel, MediaType, URI, 
									and URITemplate elements to zero or one.  URI or URITemplate is allowed, but not both.  
									Processing section updated to reflect these changes.
							</para></listitem>
							<listitem><para>Remove definition of linked XRD documents.</para></listitem>
							<listitem><para>Various minor editorial changes</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 06</entry>
					<entry>04 September 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Combine &quot;Document Property Elements&quot; and &quot;Resource Property Elements&quot; into &quot;XRD Elements&quot;</para></listitem>
							<listitem><para>Move schema and references to first section</para></listitem>
							<listitem><para>Promote &quot;XRD Extensions&quot; section, and move schema fragment</para></listitem>
							<listitem><para>Add example for URI / URITemplate processing order</para></listitem>
							<listitem><para>Move XRD Example into an appendix</para></listitem>
							<listitem><para>Various minor rewording</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 05</entry>
					<entry>01 September 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Remove priority attribute on Link, URI, and URITemplate elements.  Instead, element priority is implied by document order.  Additionally, requirement for consumers to respect priority strengthened from &quot;should&quot; to &quot;must&quot;.</para></listitem>
							<listitem><para>New &quot;Extensions&quot; element added to XRD and Link elements as the sole location to extend XRD with arbitrary child elements.</para></listitem>
							<listitem><para>Define &quot;XRDS&quot; element to contain a sequence of XRD elements.</para></listitem>
							<listitem><para>Removed &quot;match&quot; attribute from Subject.</para></listitem>
							<listitem><para>Added requirement to follow normal rules for Rel values (either use a URI, or register value with IANA)</para></listitem>
							<listitem><para>Switched from Relax NG to XSD as the authoritative schema language for the XRD Schema.  (Primarily due to the lack of a Relax NG schema for XML DSig)</para></listitem>
							<listitem><para>Clarify language regarding URIs and URI Templates</para></listitem>
							<listitem><para>Define &quot;Common Data Types&quot; for XRD</para></listitem>
							<listitem><para>Various minor editorial and grammatical changes</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 04</entry>
					<entry>12 August 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Remove XRD Trust section, pushing that work to separate trust profiles.  Move XRD Signature section up one level.</para></listitem>
							<listitem><para>Remove requirement for explicit Link Subject on linked XRDs</para></listitem>
							<listitem><para>Use non-information URI for rel value to designate linked XRD</para></listitem>
							<listitem><para>Flesh out subject matching rules</para></listitem>
							<listitem><para>Remove &quot;must not be used&quot; from Expires element description</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 03</entry>
					<entry>04 August 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Revert to previous processing flow for related resources -- first filter, then sort by priority</para></listitem>
							<listitem><para>Add media type definition for &quot;application/xrd+xml&quot;</para></listitem>
							<listitem><para>Clarify text for URI templates</para></listitem>
							<listitem><para>Strengthen requirement to use excl-c14n from &quot;should&quot; to &quot;must&quot;</para></listitem>
							<listitem><para>Move Signature element to bottom of the document for readability</para></listitem>
							<listitem><para>Add conformance section</para></listitem>
							<listitem><para>Add &quot;match&quot; attribute to Subject element.  Also add stub section for subject matching.</para></listitem>
							<listitem><para>Add XSD schema (in addition to RELAX NG)</para></listitem>
							<listitem><para>Various editorial and grammatical changes.</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 02</entry>
					<entry>03 July 2009</entry>
					<entry>willnorris</entry>
					<entry>
						<itemizedlist>
							<listitem><para>Remove XRD Trust namespace and elements (TargetSubject replaced by Subject, TargetAuthority replaced by ds:KeyInfo)</para></listitem>
							<listitem><para>Section added for XML Digital Signature, primarily copied from SAML 2.0, which chnages as necessary</para></listitem>
							<listitem><para>Language clarified on priority attribute values ('null' is not a valid value)</para></listitem>
							<listitem><para>Add section for XRD Extensibility</para></listitem>
							<listitem><para>Only require XML element order for elements with cardinality of &quot;zero or one&quot;</para></listitem>
							<listitem><para>Add section for defining linked XRD documents</para></listitem>
							<listitem><para>Processing rules changed for related resources to first sort by priority, then filter.  Also add processing rule for linked XRD documents.</para></listitem>
							<listitem><para>Various editorial and grammatical changes.</para></listitem>
						</itemizedlist>
					</entry>
				</row>
				<row>
					<entry>Working Draft 01</entry>
					<entry>09 May 2009</entry>
					<entry>willnorris</entry>
					<entry>Initial Publication</entry>
				</row>
			</tbody>
		</tgroup>
	</table>
</appendix>

</article>