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

Re: And the DTD says, "I'm NOT dead yet!!"

  • From: Norman Walsh <ndw@n...>
  • To: xml-dev@l...
  • Date: Tue, 09 Jan 2001 07:52:15 -0500

xml parameter
/ Caroline Clewlow <cclewlow@e...> was heard to say:
| I can see that XML schema does not cover entity declarations - but
| RELAX claims that it's use of hedgeRules allows the creation and
| naming of a hedge model that mimics the way parameter entities are
| used in DTD's.  Is this the same kind of entity, as the word seems
| to be used in a number of different contexts ?

There are two kinds of entities (roughly speaking) in XML:
parameter entities and general entities.

Parameter entities are used as a mechanism for parameterizing DTDs.
They are expanded only inside the DTD (or internal subset). Parameter
entities are introduced with a "%". %list.class; and %book.title.content;
are parameter entities.

General entities are used in XML documents: things like &ndw; and
&eacute; are general entities.

RELAX's hedgeRules and some features of XML Schemas are designed to provide
the features that parameter entities provide in DTDs.

XML Schemas provide no mechanism for declaring general entities. (This
isn't an oversight on the part of the XML Schema WG, it's a consequence
of how schema validation is defined. Briefly, schema validation is performed
on the information set constructed by parsing the document. But the parser
needs to know about entity declarations *while it's parsing* so schema's
just occur "too late" in the process to practically declare entities.)

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@E... | The stone fell on the pitcher? Woe to the
XML Technology Center     | pitcher. The pitcher fell on the stone? Woe
Sun Microsystems, Inc.    | to the pitcher.--Rabbinic Saying

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.