Embedded vCard

Andrew Layman andrewl at microsoft.com
Mon Nov 30 19:27:27 GMT 1998


XML Namespaces (http://www.w3.org/TR/PR-xml-names) is designed to allow the
sort of combination that you show in your example:

<? xml version="1.0" ?>
<answer xmlns="answer.dtd" xmlns:vcrd="vCard.dtd">
	<caller>
		<vcrd:vCard version="3.0">
		    <vcrd:fn>Milla</vcrd:fn>
		</vcrd:vCard>
	</caller>
</answer>

The exact values you show for the attributes xmlns and xmlns:vcrd are not
accurate, however.  Both need to be URIs.  While it is easily possible for
you to create your own URI for 'answer,' if you want interoperability with
other programs that will recognize the vcard namespace, you will need some
common agreement on the name of the namespace for the vcard elements.
Technically, this does not need to be a URI issued by the organization
controlling vCard; it could be a URI merely recognized by you and whatever
other programs you interoperate with; but it would obviously be beneficial
to have a single, widely-used URI.

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




More information about the Xml-dev mailing list