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

RE: Documents within documents


xlink one
I think this one important reason that many people can't wait until DTDs are 
dead. They really make it hard to embed one XML document into another. If 
DTDs are dead, it's trivial to embed one document into another.

If you need to do this, the best options I can think of are:

1. Bin64 the embedded document. This makes it hard to read, but does give 
you the best fidelity with the original document.

2. Stick the Prolog of the document in a CDATA section. Stick the rest of 
the document in a container element. An Internal Subset prolog _might_ 
contain "]]>", but it's pretty unlikely. If you car about namespaces, you 
should also put a xmlns="" on the container element.

-Wayne Steele


>From: Michael Brennan <Michael_Brennan@A...>
>To: "'michael.h.kay@n...'" <michael.h.kay@n...>,        
>xml-dev@l...
>Subject: RE:  Documents within documents
>Date: Thu, 7 Feb 2002 12:15:26 -0800
>
> > From: Michael Kay [mailto:michael.h.kay@n...]
>
><snip/>
>
> > The usual excuse for doing it seems to be that the inner
> > document has a
> > <!DOCTYPE..> declaration that people want to preserve while
> > carrying an XML
> > document over some protocol like SOAP.
> >
> > Is there a better solution that we can point them to?
>
>Are they using internal DTD subsets or just referencing external DTD
>entities? If the latter, perhaps some sort of XLink based annotation that
>would let the recipient fetch the DTD separately (and add the DOCTYPE back
>into the document, if needed). If using SOAP With Attachments, the DTD 
>could
>even be included as an attachment and referenced via a "cid:"; href.
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this list use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>
>


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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.