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

Re: EMBED and validation

  • From: dgd@c... (David G. Durand)
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Tue, 2 Dec 1997 23:00:29 -0500 (EST)

doctype embed
On Dec 1, 11:22am, Rob McDougall wrote:
> Subject: RE: EMBED and validation
> I'm new to XML but this doesn't seem to accomplish what I would be
> looking for as an "include" capability.

no, EMBED is _not_ an include facility. External text entities are.

> Let's say I have a markup language (let's call if RML, "Rob's Markup
> Language"). I create a DTD for it and post it to my public web site.
> All users of RML put the URL for the DTD in the <!DOCTYPE> declaration.
> So far so good?

yep.

> Now, if one particular user of RML notices that there's a section that's
> common across every one of their RML documents, they might wish to
> seperate it out into a distinct file and insert a link to it.  This
> common piece is not a complete document unto itself so it cannot be
> validated, yet the user may wish to have the documents that include make
> sure that it is valid within the context that it was embedded.  Since
> this particular file is unique to this user and not all RML users, it
> does not belong in the commono DTD.  This would seem to make an external
> text entity undesireable for this case.

Right. That's why XML has the "internal subset. You put the any _per-document_
declarations there, (inside the square brackets of the doctype) and they
augment the DTD, without removing it.


> Is this correct, or am I missing something?  Is there any other way to
> accomplish this using the current XML/XLL specs?

No; Yes; Yes.

for example, you might have:

<!doctype RML SYSTEM "some:URL/goes/here"
[
<!ENTITY boilerplate SYSTEM "http://Joes-server.isp.com/disclaimer">
]>

.... later on in your document ...
&boilerplate;

The entity reference to "boilerplate" will include the whole disclaimer without
having to change the DTD, or fill it with weird private information. Is this
good enough?

------------------------------------------+----------------------------
David Durand                 dgd@c...| david@d...
Boston University Computer Science        | Dynamic Diagrams
http://www.cs.bu.edu/students/grads/dgd/  | http://dynamicDiagrams.com/
                                          | MAPA: mapping for the WW



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.