OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: vCard DTD

[ Lists Home | Date Index | Thread Index ]
  • From: "Jason R. Cupp" <jcupp@essc.psu.edu>
  • To: xml-dev@ic.ac.uk
  • Date: Mon, 26 Jan 1998 12:06:23 -0800

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)
> (#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
this:
<person>
	<fname>Santa Clause</fname>
	<name>
		<first>...</first>
		<surname>...</surname>
		<middle>...</middle>
		...
	</name>
</person>

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

<person>
	<name>
		<first>Santa</first><surname>Clause</surname>
	</name>

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
Vcard?


-- 
Jason R. Cupp (jcupp@essc.psu.edu)
Deasy GeoGraphics
The Pennsylvania State University

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS