[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: vCard DTD

  • From: "Jason R. Cupp" <jcupp@e...>
  • To: xml-dev@i...
  • Date: Mon, 26 Jan 1998 11:44:08 -0800

vcard type
Ron Daniel Jr. wrote:
> 
> There is no XML encoding that he knows of, but he encouraged me to
> define one. The only constraint is that we don't call it "vCard"
> since that is a trademark they don't want to dilute. He suggested
> calling it something like "vCard-XML". He also suggested that it be
> based on the IETF version of the vCard schema, which offers a couple
> of improvements over the 2.1 spec that is current. After the IETF
> issues the "vCad MIME Directory Profile" as an RFC, IMC is going to
> call it vCard 3.0.
> 
> I took a quick look at the Internet draft he was talking about,
> an XML version of that info does not look too hard.

I'm new to DTDs (markup seems to always come first), but how does this
look for a VERY basic start? I used the vCard specification and the FGDC
(Federal Geographic Data Committee "http://www.fgdc.gov") metadata
standard as a model. If there are more than two people willing to pitch
in, I'd be willing to host a web-page to keep everyone up-to-date.

<!DOCTYPE Xcard [
	<!ELEMENT Xcard (identity,contact) >
        <!ELEMENT identity (person-primary | organization-primary)>
	<!ELEMENT person-primary (person,organization?)>
	<!ELEMENT organization-primary (organization,person*)>

	<!ELEMENT person (name,title?)>
	<!ELEMENT organization (org-name,unit?)>

	<!ELEMENT name (#PCDATA,firstname,surname,other?,suffix?,prefix?)>
	<!ELEMENT title (#PCDATA)>

	<!ELEMENT org-name (#PCDATA)>
	<!ELEMENT unit (#PCDATA)>

	<!ELEMENT firstname (#PCDATA)>
	<!ELEMENT surname (#PCDATA)>
	<!ELEMENT other (#PCDATA)>
	<!ELEMENT suffix (#PCDATA)>
	<!ELEMENT prefix (#PCDATA)>

	<!ELEMENT contact (tel-info*,email-info*)>
	<!ELEMENT tel-info (telephone+)>
	<!ELEMENT email-info (email-type?,email-address)+>

	<!ELEMENT telephone #PCDATA>
	<!ATTLIST telephone type (PREF | WORK | HOME | VOICE | FAX | MSG | CELL
| PAGER | BBS | MODEM | CAR | ISDN | VIDEO) "PREF">

	<!ELEMENT email-type (#PCDATA)>
	<!ELEMENT email-address (#PCDATA)>
]>


-- 
Jason R. Cupp (jcupp@e...)
Deasy GeoGraphics
The Pennsylvania State University

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.