[
Lists Home |
Date Index |
Thread Index
]
- From: Andrew Layman <andrewl@microsoft.com>
- To: "'Makelainen, Milla [HAL02:HK00:EXCH]'" <milla.makelainen.millam@nortel.co.uk>
- Date: Mon, 30 Nov 1998 11:26:00 -0800
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@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)
|