draft-ietf-vcarddav-vcardxml-05.txt   draft-ietf-vcarddav-vcardxml-06.txt 
Network Working Group S. Perreault Network Working Group S. Perreault
Internet-Draft Viagenie Internet-Draft Viagenie
Intended status: Standards Track August 2, 2010 Intended status: Standards Track December 9, 2010
Expires: February 3, 2011 Expires: June 12, 2011
vCard XML Representation vCard XML Representation
draft-ietf-vcarddav-vcardxml-05 draft-ietf-vcarddav-vcardxml-06
Abstract Abstract
This document defines the XML schema of the vCard data format. This document defines the XML schema of the vCard data format.
Status of This Memo Status of This Memo
This Internet-Draft is submitted to IETF in full conformance with the This Internet-Draft is submitted to IETF in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
skipping to change at page 1, line 36 skipping to change at page 1, line 36
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
The list of current Internet-Drafts can be accessed at The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt. http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html. http://www.ietf.org/shadow.html.
This Internet-Draft will expire on February 3, 2011. This Internet-Draft will expire on June 12, 2011.
Copyright Notice Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
skipping to change at page 2, line 23 skipping to change at page 2, line 23
4.1. Extensibility . . . . . . . . . . . . . . . . . . . . . . 6 4.1. Extensibility . . . . . . . . . . . . . . . . . . . . . . 6
4.2. Limitations . . . . . . . . . . . . . . . . . . . . . . . 7 4.2. Limitations . . . . . . . . . . . . . . . . . . . . . . . 7
5. Format Conversions . . . . . . . . . . . . . . . . . . . . . . 8 5. Format Conversions . . . . . . . . . . . . . . . . . . . . . . 8
6. Security Considerations . . . . . . . . . . . . . . . . . . . 10 6. Security Considerations . . . . . . . . . . . . . . . . . . . 10
7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 10 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 10
7.1. Registration of the XML Namespace . . . . . . . . . . . . 10 7.1. Registration of the XML Namespace . . . . . . . . . . . . 10
7.2. Media Type . . . . . . . . . . . . . . . . . . . . . . . . 10 7.2. Media Type . . . . . . . . . . . . . . . . . . . . . . . . 10
8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 11 8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 11
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 11 9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 11
9.1. Normative References . . . . . . . . . . . . . . . . . . . 11 9.1. Normative References . . . . . . . . . . . . . . . . . . . 11
9.2. Informative References . . . . . . . . . . . . . . . . . . 11 9.2. Informative References . . . . . . . . . . . . . . . . . . 12
Appendix A. Relax NG Schema . . . . . . . . . . . . . . . . . . . 12 Appendix A. Relax NG Schema . . . . . . . . . . . . . . . . . . . 12
Appendix B. Change Log (to be removed by RFC Editor prior to Appendix B. Change Log (to be removed by RFC Editor prior to
publication) . . . . . . . . . . . . . . . . . . . . 18 publication) . . . . . . . . . . . . . . . . . . . . 18
B.1. Changes in -05 . . . . . . . . . . . . . . . . . . . . . . 18 B.1. Changes in -06 . . . . . . . . . . . . . . . . . . . . . . 18
B.2. Changes in -04 . . . . . . . . . . . . . . . . . . . . . . 18 B.2. Changes in -05 . . . . . . . . . . . . . . . . . . . . . . 18
B.3. Changes in -03 . . . . . . . . . . . . . . . . . . . . . . 18 B.3. Changes in -04 . . . . . . . . . . . . . . . . . . . . . . 18
B.4. Changes in -02 . . . . . . . . . . . . . . . . . . . . . . 19 B.4. Changes in -03 . . . . . . . . . . . . . . . . . . . . . . 18
B.5. Changes in -01 . . . . . . . . . . . . . . . . . . . . . . 19 B.5. Changes in -02 . . . . . . . . . . . . . . . . . . . . . . 18
B.6. Changes in -00 . . . . . . . . . . . . . . . . . . . . . . 19 B.6. Changes in -01 . . . . . . . . . . . . . . . . . . . . . . 19
B.7. Changes in -00 . . . . . . . . . . . . . . . . . . . . . . 19
1. Introduction 1. Introduction
vCard [I-D.ietf-vcarddav-vcardrev] is a data format for representing vCard [I-D.ietf-vcarddav-vcardrev] is a data format for representing
and exchanging information about individuals and other entities. It and exchanging information about individuals and other entities. It
is a text-based format (as opposed to a binary format). This is a text-based format (as opposed to a binary format). This
document defines an XML representation for vCard. The underlying document defines an XML representation for vCard. The underlying
data structure is exactly the same, enabling a 1-to-1 mapping between data structure is exactly the same, enabling a 1-to-1 mapping between
the original vCard format and the XML representation. The XML the original vCard format and the XML representation. The XML
formatting may be preferred in some contexts where an XML engine is formatting may be preferred in some contexts where an XML engine is
skipping to change at page 3, line 35 skipping to change at page 3, line 35
3. Example: Author's XML vCard 3. Example: Author's XML vCard
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0"> <vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
<vcard> <vcard>
<fn><text>Simon Perreault</text></fn> <fn><text>Simon Perreault</text></fn>
<n> <n>
<surname><text>Perreault</text></surname> <surname><text>Perreault</text></surname>
<given><text>Simon</text></given> <given><text>Simon</text></given>
<additional/>
<prefix/> <prefix/>
<suffix> <suffix>
<text>ing. jr.</text> <text>ing. jr.</text>
<text>M.Sc.</text> <text>M.Sc.</text>
</suffix> </suffix>
</n> </n>
<bday><date>--0203</date></bday> <bday><date>--0203</date></bday>
<anniversary> <anniversary>
<date-time>20090808T1430-0500</date-time> <date-time>20090808T1430-0500</date-time>
</anniversary> </anniversary>
<sex><integer>1</integer></sex> <gender><text>male</text></gender>
<lang> <lang>
<parameters><pref>1</pref></parameters> <parameters><pref>1</pref></parameters>
<language-tag>fr</language-tag> <language-tag>fr</language-tag>
</lang> </lang>
<lang> <lang>
<parameters><pref>2</pref></parameters> <parameters><pref>2</pref></parameters>
<language-tag>en</language-tag> <language-tag>en</language-tag>
</lang> </lang>
<org> <org>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<text>Viagenie</text> <text>Viagenie</text>
</org> </org>
<adr> <adr>
<parameters><type>work</type></parameters> <parameters>
<type>work</type>
<label>Simon Perreault\n2600 boul. Laurier, suite
625\nQuebec, QC, Canada\nG1V 4W1</label>
</parameters>
<pobox/> <pobox/>
<ext><text>Suite 625</text></ext> <ext/>
<street><text>2600 boul. Laurier</text></street> <street><text>2600 boul. Laurier, suite 625</text></street>
<locality><text>Quebec</text></locality> <locality><text>Quebec</text></locality>
<region><text>QC</text></region> <region><text>QC</text></region>
<code><text>G1V 4W1</text></code> <code><text>G1V 4W1</text></code>
<country><text>Canada</text></country> <country><text>Canada</text></country>
</adr> </adr>
<tel> <tel>
<parameters> <parameters>
<type>work</type> <type>work</type>
<type>voice</type> <type>voice</type>
</parameters> </parameters>
skipping to change at page 4, line 37 skipping to change at page 4, line 41
<tel> <tel>
<parameters> <parameters>
<type>work</type> <type>work</type>
<type>text</type> <type>text</type>
<type>voice</type> <type>voice</type>
<type>cell</type> <type>cell</type>
<type>video</type> <type>video</type>
</parameters> </parameters>
<uri>tel:+1-418-262-6501</uri> <uri>tel:+1-418-262-6501</uri>
</tel> </tel>
<tel>
<parameters>
<type>work</type>
<type>fax</type>
</parameters>
<uri>tel:+1-418-656-9257</uri>
</tel>
<email> <email>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<text>simon.perreault@viagenie.ca</text> <text>simon.perreault@viagenie.ca</text>
</email> </email>
<geo> <geo>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<uri>geo:46.772673,-71.282945</uri> <uri>geo:46.772673,-71.282945</uri>
</geo> </geo>
<key> <key>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
skipping to change at page 5, line 6 skipping to change at page 5, line 4
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<text>simon.perreault@viagenie.ca</text> <text>simon.perreault@viagenie.ca</text>
</email> </email>
<geo> <geo>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<uri>geo:46.772673,-71.282945</uri> <uri>geo:46.772673,-71.282945</uri>
</geo> </geo>
<key> <key>
<parameters><type>work</type></parameters> <parameters><type>work</type></parameters>
<uri>http://www.viagenie.ca/simon.perreault/simon.asc</uri> <uri>http://www.viagenie.ca/simon.perreault/simon.asc</uri>
</key> </key>
<tz><text>America/Montreal</text></tz> <tz><text>America/Montreal</text></tz>
<class><text>PUBLIC</text></class>
</vcard> </vcard>
</vcards> </vcards>
4. Design Considerations 4. Design Considerations
The general idea is to map vCard parameters, properties, and value The general idea is to map vCard parameters, properties, and value
types to XML elements. For example, the "FN" property is mapped to types to XML elements. For example, the "FN" property is mapped to
the "fn" element. That element in turn contains a text element whose the "fn" element. That element in turn contains a text element whose
content corresponds to the vCard property's value. content corresponds to the vCard property's value.
skipping to change at page 9, line 32 skipping to change at page 9, line 32
For example, these two vCards are equivalent: For example, these two vCards are equivalent:
<xml version="1.0"> <xml version="1.0">
<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0"> <vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
<vcard> <vcard>
<fn><text>J. Doe</text></fn> <fn><text>J. Doe</text></fn>
<n> <n>
<surname><text>Doe</text></surname> <surname><text>Doe</text></surname>
<given><text>J.</text></given> <given><text>J.</text></given>
<additional/>
<prefix/> <prefix/>
<suffix/> <suffix/>
</n> </n>
<x-file> <x-file>
<parameters><type>image/jpeg</type></parameters> <parameters><type>image/jpeg</type></parameters>
<text>alien.jpg</text> <text>alien.jpg</text>
</x-file> </x-file>
<a xmlns="http://www.w3.org/1999/xhtml" <a xmlns="http://www.w3.org/1999/xhtml"
href="http://www.example.com">My web page!</a> href="http://www.example.com">My web page!</a>
</vcard> </vcard>
skipping to change at page 11, line 39 skipping to change at page 11, line 49
Alexey Melnikov, Barry Leiba, Cyrus Daboo, Joe Hildebrand, Joseph Alexey Melnikov, Barry Leiba, Cyrus Daboo, Joe Hildebrand, Joseph
Smarr, Marc Blanchet, Peter Saint-Andre, Robins George, Zahhar Smarr, Marc Blanchet, Peter Saint-Andre, Robins George, Zahhar
Kirillov, Zoltan Ordogh. Kirillov, Zoltan Ordogh.
9. References 9. References
9.1. Normative References 9.1. Normative References
[I-D.ietf-vcarddav-vcardrev] Perreault, S. and P. Resnick, "vCard [I-D.ietf-vcarddav-vcardrev] Perreault, S. and P. Resnick, "vCard
Format Specification", Format Specification",
draft-ietf-vcarddav-vcardrev-12 (work draft-ietf-vcarddav-vcardrev-15 (work
in progress), July 2010. in progress), December 2010.
[relaxng] Clark, J., "RELAX NG Specification", [relaxng] Clark, J., "RELAX NG Specification",
December 2001. December 2001.
[relaxng-compact] Clark, J., "RELAX NG Compact Syntax", [relaxng-compact] Clark, J., "RELAX NG Compact Syntax",
November 2002, <http://www.relaxng.org/ November 2002, <http://www.relaxng.org/
compact-20021121.html>. compact-20021121.html>.
9.2. Informative References 9.2. Informative References
[I-D.dawson-vcard-xml-dtd] Dawson, F., "The vCard v3.0 XML DTD", [I-D.dawson-vcard-xml-dtd] Dawson, F., "The vCard v3.0 XML DTD",
draft-dawson-vcard-xml-dtd-03 (work in draft-dawson-vcard-xml-dtd-03 (work in
progress), June 1998. progress), June 1998.
Appendix A. Relax NG Schema Appendix A. Relax NG Schema
default namespace = "urn:ietf:params:xml:ns:vcard-4.0" default namespace = "urn:ietf:params:xml:ns:vcard-4.0"
# Value types # Value types
value-text = element text { text } value-text = element text { text }
value-text-list = value-text+ value-text-list = value-text+
value-uri = element uri { xsd:anyURI } value-uri = element uri { xsd:anyURI }
value-date = element date { value-date = element date {
xsd:string { pattern = "\d{8}|\d{4}-\d\d|--\d\d(\d\d)?|---\d\d" } xsd:string { pattern = "\d{8}|\d{4}-\d\d|--\d\d(\d\d)?|---\d\d" }
} }
value-time = element time { value-time = element time {
xsd:string { pattern = "(\d\d(\d\d(\d\d)?)?|-\d\d(\d\d?)|--\d\d)" xsd:string { pattern = "(\d\d(\d\d(\d\d)?)?|-\d\d(\d\d?)|--\d\d)"
~ "(Z|[+\-]\d\d(\d\d)?)?" } ~ "(Z|[+\-]\d\d(\d\d)?)?" }
} }
value-date-time = element date-time { value-date-time = element date-time {
xsd:string { pattern = "(\d{8}|--\d{4}|---\d\d)T\d\d(\d\d(\d\d)?)?" xsd:string { pattern = "(\d{8}|--\d{4}|---\d\d)T\d\d(\d\d(\d\d)?)?"
~ "(Z|[+\-]\d\d(\d\d)?)?" } ~ "(Z|[+\-]\d\d(\d\d)?)?" }
} }
value-date-and-or-time = value-date | value-date-time | value-time value-date-and-or-time = value-date | value-date-time | value-time
value-timestamp = element timestamp { value-timestamp = element timestamp {
xsd:string { pattern = "\d{8}T\d{6}(Z|[+\-]\d\d(\d\d)?)?" } xsd:string { pattern = "\d{8}T\d{6}(Z|[+\-]\d\d(\d\d)?)?" }
} }
value-boolean = element boolean { xsd:boolean } value-boolean = element boolean { xsd:boolean }
value-integer = element integer { xsd:integer } value-integer = element integer { xsd:integer }
value-float = element float { xsd:float } value-float = element float { xsd:float }
value-binary = element binary { xsd:base64Binary } value-language-tag = element language-tag {
value-language-tag = element language-tag { xsd:string { pattern = "([a-z]{2,3}((-[a-z]{3}){0,3})?|[a-z]{4,8})"
xsd:string { pattern = "([a-z]{2,3}((-[a-z]{3}){0,3})?|[a-z]{4,8})" ~ "(-[a-z]{4})?(-([a-z]{2}|\d{3}))?"
~ "(-[a-z]{4})?(-([a-z]{2}|\d{3}))?" ~ "(-([0-9a-z]{5,8}|\d[0-9a-z]{3}))*"
~ "(-([0-9a-z]{5,8}|\d[0-9a-z]{3}))*" ~ "(-[0-9a-wyz](-[0-9a-z]{2,8})+)*"
~ "(-[0-9a-wyz](-[0-9a-z]{2,8})+)*" ~ "(-x(-[0-9a-z]{1,8})+)?|x(-[0-9a-z]{1,8})+|"
~ "(-x(-[0-9a-z]{1,8})+)?|x(-[0-9a-z]{1,8})+|" ~ "[a-z]{1,3}(-[0-9a-z]{2,8}){1,2}" }
~ "[a-z]{1,3}(-[0-9a-z]{2,8}){1,2}" } }
}
# Parameters # Parameters
param-language = element language { value-language-tag }? param-language = element language { value-language-tag }?
param-pref = element pref { param-pref = element pref {
xsd:integer { minInclusive = "1" maxInclusive = "100" } xsd:integer { minInclusive = "1" maxInclusive = "100" }
}? }?
param-altid = element altid { value-text }? param-altid = element altid { value-text }?
param-pid = element pid { param-pid = element pid {
xsd:string { pattern = "\d+(\.\d+)?" } xsd:string { pattern = "\d+(\.\d+)?" }
}? }?
param-type = element type { "work" | "home" }* param-type = element type { "work" | "home" }*
param-calscale = element calscale { "gregorian" }? param-calscale = element calscale { "gregorian" }?
param-sort-as = element sort-as { value-text+ }? param-sort-as = element sort-as { value-text+ }?
param-version = element version { value-text }? param-geo = element geo { value-uri }?
param-geo = element geo { value-uri }? param-tz = element tz { value-text | value-uri }?
param-tz = element tz { value-text | value-uri }? param-label = element label { value-text }?
param-fmttype = element fmttype {
xsd:string { pattern = "[a-zA-Z0-9!#$&.+\-^_]{1,127}/"
~ "[a-zA-Z0-9!#$&.+\-^_]{1,127}" }
}?
# Properties # Properties
property-source = element source { property-source = element source {
element parameters { param-altid, param-pid, param-pref }, element parameters { param-altid, param-pid, param-pref },
value-uri value-uri
} }
property-kind = element kind { property-kind = element kind {
element text { "individual" | "group" | "org" | element text { "individual" | "group" | "org" | "location" }*
"location" | "thing" }* }
} property-fn = element fn {
property-fn = element fn { element parameters { param-language, param-altid, param-pid,
element parameters { param-language, param-altid, param-pid, param-pref, param-type }?,
param-pref, param-type }?, value-text
value-text }
} property-n = element n {
property-n = element n { element parameters { param-language, param-sort-as, param-altid }?,
element parameters { param-language, param-sort-as, param-altid }?, element surname { value-text-list? },
element surname { value-text-list? }, element given { value-text-list? },
element given { value-text-list? }, element additional { value-text-list? },
element prefix { value-text-list? }, element prefix { value-text-list? },
element suffix { value-text-list? } element suffix { value-text-list? }
} }
property-nickname = element nickname { property-nickname = element nickname {
element parameters { param-language, param-altid, param-pid, element parameters { param-language, param-altid, param-pid,
param-pref, param-type }?, param-pref, param-type }?,
value-text-list value-text-list
} }
property-photo = element photo { property-photo = element photo {
element parameters { element parameters {
param-altid, param-altid,
param-pid, param-pid,
param-pref, param-pref,
param-type, param-type
param-fmttype }?,
}?, value-uri
(value-binary | value-uri) }
} property-bday = element bday {
property-bday = element bday { element parameters { param-altid, param-calscale }?,
element parameters { param-altid, param-calscale }?, (value-date-and-or-time | value-text)
(value-date-and-or-time | value-text) }
} property-anniversary = element anniversary {
property-dday = element dday { element parameters { param-altid, param-calscale }?,
element parameters { param-altid, param-calscale }?, (value-date-and-or-time | value-text)
(value-date-and-or-time | value-text) }
} property-gender = element gender {
property-birth = element birth { element text { "male" | "female" }
element parameters { param-altid, param-language }?, }
(value-text | value-uri) property-adr = element adr {
} element parameters {
property-death = element death { param-language,
element parameters { param-altid, param-language }?, param-altid,
(value-text | value-uri) param-pid,
} param-pref,
property-anniversary = element anniversary { param-type,
element parameters { param-altid, param-calscale }?, param-geo,
(value-date-and-or-time | value-text) param-tz,
} param-label
property-sex = element sex { }?,
element integer { "0" | "1" | "2" | "9" } element pobox { value-text-list? },
} element ext { value-text-list? },
property-adr = element adr { element street { value-text-list? },
element parameters { element locality { value-text-list? },
param-language, element region { value-text-list? },
param-altid, element code { value-text-list? },
param-pid, element country { value-text-list? }
param-pref, }
param-type, property-tel = element tel {
param-geo, element parameters {
param-tz param-altid,
}?, param-pid,
element pobox { value-text-list? }, param-pref,
element ext { value-text-list? }, element type { "work" | "home" | "text" | "voice"
element street { value-text-list? }, | "fax" | "cell" | "video" | "pager"
element locality { value-text-list? }, | "textphone" }*
element region { value-text-list? }, },
element code { value-text-list? }, (value-text | value-uri)
element country { value-text-list? } }
} property-email = element email {
property-label = element label { element parameters { param-altid, param-pid, param-pref,
element parameters { param-language, param-altid, param-pid, param-type }?,
param-pref, param-type }?, value-text
value-text }
}
property-tel = element tel {
element parameters {
param-altid,
param-pid,
param-pref,
element type { "work" | "home" | "text" | "voice"
| "fax" | "cell" | "video" | "pager"
| "textphone" }*
},
value-uri
}
property-email = element email {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-text
}
property-impp = element impp {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
property-lang = element lang {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-language-tag
}
property-tz = element tz {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
(value-text | value-uri)
}
property-geo = element geo {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
property-title = element title {
element parameters { param-language, param-altid, param-pid,
param-pref, param-type }?,
value-text
}
property-role = element role {
element parameters { param-language, param-altid, param-pid,
param-pref, param-type }?,
value-text
}
property-logo = element logo {
element parameters {
param-language,
param-altid,
param-pid,
param-pref,
param-type,
param-fmttype
}?,
(value-binary | value-uri)
}
property-org = element org {
element parameters { param-language, param-altid, param-pid,
param-pref, param-type, param-sort-as }?,
value-text-list
}
property-member = element member {
element parameters { param-altid, param-pid, param-pref }?,
value-uri
}
property-related = element related {
element parameters {
param-altid,
param-pid,
param-pref,
element type { "work" | "home" | "parent" | "child"
| "sibling" | "spouse" | "family" | "friend"
| "supervisor" | "supervisee" | "assistant"
| "colleague" | "agent" | "emergency" }*
}?,
(value-uri | value-text)
}
property-categories = element categories {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-text
}
property-note = element note {
element parameters { param-language, param-altid, param-pid,
param-pref, param-type }?,
value-text
}
property-prodid = element prodid { value-text }
property-rev = element rev { value-timestamp }
property-sound = element sound {
element parameters {
param-language,
param-altid,
param-pid,
param-pref,
param-type,
param-fmttype
}?,
(value-binary | value-uri)
} property-impp = element impp {
property-uid = element uid { value-uri } element parameters { param-altid, param-pid, param-pref,
property-clientpidmap = element clientpidmap { param-type }?,
element sourceid { xsd:positiveInteger }, value-uri
value-uri }
} property-lang = element lang {
property-url = element url { element parameters { param-altid, param-pid, param-pref,
element parameters { param-altid, param-pid, param-pref, param-type }?,
param-type }?, value-language-tag
value-uri }
} property-tz = element tz {
property-class = element class { element parameters { param-altid, param-pid, param-pref,
element text { "PUBLIC" | "PRIVATE" | "CONFIDENTIAL" } param-type }?,
} (value-text | value-uri)
property-key = element key { }
element parameters { property-geo = element geo {
param-altid, element parameters { param-altid, param-pid, param-pref,
param-pid, param-type }?,
param-pref, value-uri
param-type, }
param-fmttype property-title = element title {
}?, element parameters { param-language, param-altid, param-pid,
(value-binary | value-uri | value-text) param-pref, param-type }?,
} value-text
property-fburl = element fburl { }
element parameters { param-altid, param-pid, param-pref, property-role = element role {
param-type }?, element parameters { param-language, param-altid, param-pid,
value-uri param-pref, param-type }?,
} value-text
property-caladruri = element caladruri { }
element parameters { param-altid, param-pid, param-pref, property-logo = element logo {
param-type }?, element parameters {
value-uri param-language,
} param-altid,
property-caluri = element caluri { param-pid,
element parameters { param-altid, param-pid, param-pref, param-pref,
param-type }?, param-type
value-uri }?,
} value-uri
}
property-org = element org {
element parameters { param-language, param-altid, param-pid,
param-pref, param-type, param-sort-as }?,
value-text-list
}
property-member = element member {
element parameters { param-altid, param-pid, param-pref }?,
value-uri
# Top-level grammar }
property = property-adr | property-anniversary | property-bday property-related = element related {
| property-birth | property-caladruri | property-caluri element parameters {
| property-categories | property-class | property-clientpidmap param-altid,
| property-dday | property-death | property-email param-pid,
| property-fburl | property-fn | property-geo | property-impp param-pref,
| property-key | property-kind | property-label | property-lang element type { "work" | "home" | "contact" | "acquaintance" |
| property-logo | property-member | property-n "friend" | "met" | "co-worker" | "colleague" | "co-resident" |
| property-nickname | property-note | property-org "neighbor" | "child" | "parent" | "sibling" | "spouse" |
| property-photo | property-prodid | property-related "kin" | "muse" | "crush" | "date" | "sweetheart" | "me" }*
| property-rev | property-role | property-sex }?,
| property-sound | property-source | property-tel (value-uri | value-text)
| property-title | property-tz | property-uid | property-url }
start = element vcards { property-categories = element categories {
element vcard { element parameters { param-altid, param-pid, param-pref,
(property param-type }?,
| element group { value-text
attribute name { text }, }
property* property-note = element note {
})+ element parameters { param-language, param-altid, param-pid,
}+ param-pref, param-type }?,
} value-text
}
property-prodid = element prodid { value-text }
property-rev = element rev { value-timestamp }
property-sound = element sound {
element parameters {
param-language,
param-altid,
param-pid,
param-pref,
param-type
}?,
value-uri
}
property-uid = element uid { value-uri }
property-clientpidmap = element clientpidmap {
element sourceid { xsd:positiveInteger },
value-uri
}
property-url = element url {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
property-key = element key {
element parameters {
param-altid,
param-pid,
param-pref,
param-type
}?,
(value-uri | value-text)
}
property-fburl = element fburl {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
property-caladruri = element caladruri {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
property-caluri = element caluri {
element parameters { param-altid, param-pid, param-pref,
param-type }?,
value-uri
}
# Top-level grammar
property = property-adr | property-anniversary | property-bday
| property-caladruri | property-caluri | property-categories
| property-clientpidmap | property-email | property-fburl
| property-fn | property-geo | property-impp | property-key
| property-kind | property-lang | property-logo
| property-member | property-n | property-nickname
| property-note | property-org | property-photo
| property-prodid | property-related | property-rev
| property-role | property-gender | property-sound
| property-source | property-tel | property-title
| property-tz | property-uid | property-url
start = element vcards {
element vcard {
(property
| element group {
attribute name { text },
property*
})+
}+
}
Appendix B. Change Log (to be removed by RFC Editor prior to Appendix B. Change Log (to be removed by RFC Editor prior to
publication) publication)
B.1. Changes in -05 B.1. Changes in -06
o Synchronized with draft-ietf-vcarddav-vcardrev-15.
B.2. Changes in -05
o Synchronized with draft-ietf-vcarddav-vcardrev-13. o Synchronized with draft-ietf-vcarddav-vcardrev-13.
B.2. Changes in -04 B.3. Changes in -04
o Synchronized with draft-ietf-vcarddav-vcardrev-12. o Synchronized with draft-ietf-vcarddav-vcardrev-12.
o Added application/vcard+xml media type. o Added application/vcard+xml media type.
o Added rules for backslash escaping and quoting when converting. o Added rules for backslash escaping and quoting when converting.
o Added description of <vcards> element. o Added description of <vcards> element.
o Described group construct in XML. o Described group construct in XML.
B.3. Changes in -03 B.4. Changes in -03
o Created "Format Conversions" section. o Created "Format Conversions" section.
o Turned more <type> parameter values into plain text. o Turned more <type> parameter values into plain text.
o Removed need for empty value elements in components. o Removed need for empty value elements in components.
o Wrapped value of <sex>, <class>, and <kind> in value elements. o Wrapped value of <sex>, <class>, and <kind> in value elements.
B.4. Changes in -02 B.5. Changes in -02
o Synchronized with draft-ietf-vcarddav-vcardrev-10. o Synchronized with draft-ietf-vcarddav-vcardrev-10.
o Turned <type> parameter values into plain text. o Turned <type> parameter values into plain text.
o Moved the "XML" property to vCard base. o Moved the "XML" property to vCard base.
o Changed title to avoid confusion with XML Schema. o Changed title to avoid confusion with XML Schema.
o Added prefixes "value-", "param-", and "property-" in schema. o Added prefixes "value-", "param-", and "property-" in schema.
o Better language for specifying what a parser must ignore. o Better language for specifying what a parser must ignore.
B.5. Changes in -01 B.6. Changes in -01
o Synchronized with draft-ietf-vcarddav-vcardrev-09. o Synchronized with draft-ietf-vcarddav-vcardrev-09.
o Added the <vcards> element to allow multiple vCards in a single o Added the <vcards> element to allow multiple vCards in a single
XML file. XML file.
o Created the <parameters> container element. o Created the <parameters> container element.
o Use text value for enumeration in <class> element. o Use text value for enumeration in <class> element.
o Created the "XML" vCard property. o Created the "XML" vCard property.
o Added IANA considerations section. o Added IANA considerations section.
o Added security considerations section. o Added security considerations section.
B.6. Changes in -00 B.7. Changes in -00
o Same as draft-perreault-vcarddav-vcardxml-02. o Same as draft-perreault-vcarddav-vcardxml-02.
Author's Address Author's Address
Simon Perreault Simon Perreault
Viagenie Viagenie
2600 boul. Laurier, suite 625 2600 boul. Laurier, suite 625
Quebec, QC G1V 4W1 Quebec, QC G1V 4W1
Canada Canada
 End of changes. 27 change blocks. 
326 lines changed or deleted 301 lines changed or added

This html diff was produced by rfcdiff 1.40. The latest version is available from http://tools.ietf.org/tools/rfcdiff/