vCard DTD

Jason R. Cupp jcupp at
Tue Jan 27 00:59:27 GMT 1998

Chris Maden wrote:
> [Jason R. Cupp]
> >       <!ELEMENT name (#PCDATA,firstname,surname,other?,suffix?,prefix?)>
> This content model is not legal.  Any mixed content must be of the
> forms:
> (#PCDATA | element1 | element2 | ... | elementN)*
> I'd recommend just leaving the #PCDATA out of the name, but that will
> make migration from existing vcards more difficult, since they don't
> distinguish the fields of the name, do they?

Do the content models in XML and SGML differ here? I've seen the first
example around somewhere. Vcards offer two items: formatted name for
looks and a structured name. Replicating this in XML could look like
	<fname>Santa Clause</fname>

Which would translate more directly into Vcard, but have extra
information for a straight HTML,TEXT conversion. Or,


Conversion to HTML or TEXT would either ignore the tags inside <name> or
use them to generate an index. Would it be tricker to get this into

Jason R. Cupp (jcupp at
Deasy GeoGraphics
The Pennsylvania State University

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list