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

Embedded vCard

  • From: "Makelainen, Milla [HAL02:HK00:EXCH]" <milla.makelainen.millam@n...>
  • To: 'XML Developers' List' <xml-dev@i...>
  • Date: Mon, 30 Nov 1998 11:44:41 -0000

vcard
Hi all,

My problem is the following and I hope somebody here can help me out:

I have a XML document as an answer to a query that looks roughly like this

<? xml version="1.0" ?>
<!DOCTYPE answer SYSTEM "answer.dtd">
<answer>
	<caller>Milla</caller>
	<receiver>Henry</receiver>
	<location>office</location>
</answer>

Now, I want to embed vCard DTD
(http://www.ietf.org/internet-drafts/draft-dawson-vcard-xml-dtd-02.txt) into
the document so that inside <caller> and <receiver> I would have vCard
element (something) like this:

	<caller>
		<vCard version ="3.0">
		<fn>Milla</fn>
		</vCard>
	</caller>

So, one answer I guess would be using namespaces? Could I use namespaces in
the following fashion:

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

However, Frank Dawson recommends in vCard DTD using the following:

<?xml version="1.0" ?>
<!DOCTYPE answer SYSTEM "answer.dtd" 
[
<!NOTATION vCard SYSTEM "vCard.dtd">
<!ENTITY cllr SYSTEM "Milla.vcf" NDATA vCard>
<!ENTITY rcvr SYSTEM "Henry.vcf" NDATA vCard>
]>

<answer>
	<caller vcard="cllr"></caller>
	<receiver vcard="rcvr"></receiver>
	<location>office</location>
</answer>

So problem isn't maybe about how to do the embedding, but more like is there
a standardised way of doing this. Also, do you have any idea of how
validating parsers around would deal with embedding? I have been burning my
brain with this - in vain so far - so I really appreciate any ideas you
have!

Milla

Milla Makelainen
Smart Network Technology, Nortel Networks
email: millam@n...
tel. +44 (0) 1279 403270
mobile +44 (0) 780 149 5538


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.