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

Re: Problems with Entities (was re:Embed and validation)

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "Rob McDougall" <RMcDouga@J...>, "'xml-dev@i...'" <xml-dev@i...>
  • Date: Thu, 4 Dec 1997 14:21:36 +1100

validation problem embed

 
> From: Rob McDougall <RMcDouga@J...>


> (1) Declarations must be performed near the top of the file.
> (2) Declarations should be performed near where they are used.

There has been a proposal for inline declarations recently.  They would
use declaration syntax but be inside a processing instruction, e.g.
 <?IS8879 ELEMENT dog (nose, leg+, tail) ?>

(This, I believe, will not be in WebSGML, now being finalized.  But it
may make it through the big SGML revision which looms.)

> I realise this inflexibility is something that has been inherited from
> SGML, but I worry that this will impede XML's adoption into the
> marketplace.  This is the second time I've had to reject using XML's
> entity substitution capabilities because of the need to declare all your
> entities at the top of the file.  I originally had wished to use the
> entity substitution as a text substitution, but unfortunately, my users
> will want to "re-define" the value of an entity several times throughout
> the file.  This cannot be done using XML entities.

In XML, the system identifier of an entity is a URI.  This can include
a query.  The query can trigger an update of the value.

There is no way to update the value of an external entity dynamically in
XML, but that is because it is not a programming language.  However, you
can markup that you want updates to take place.  For example, if the
text was a running header, you could have an element like
	<running-header>blah</blah>
and make your software update the entity every time it was found. If you
want to embed this more clearly into your document, you could use a processing
instruction, for example
	<?RicksScript Header="blah"; ?>

Use entities to bring data in and PIs to send messages out.

Rick Jelliffe

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.