|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Embedded 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








