[
Lists Home |
Date Index |
Thread Index
]
- From: "Makelainen, Milla [HAL02:HK00:EXCH]" <milla.makelainen.millam@nortel.co.uk>
- To: 'XML Developers' List' <xml-dev@ic.ac.uk>
- Date: Mon, 30 Nov 1998 11:44:41 -0000
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@nortelnetworks.co.uk
tel. +44 (0) 1279 403270
mobile +44 (0) 780 149 5538
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)
|