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

Re: Character Entities: An XML Core WG View


xml macro



> Well, I did say "for experimentation".  It could then be standardised
> using the usual &-syntax.

The trouble is I'm not sure that the experiment would provide any useful
feedback.

Given an implementation of some macro expansion mechanism then basically
macros get expanded and so are invisble to the rest of the system, so
whatever macro/entity you come up with, everything works the same way.

However different design choices have radically different behaviour if
the document is processed by a system that doesn't know of the
mechanism or can't find the macro definitions. It's really the behaviour
in these error situations that distinguishes the different design
possibilities.

<foo>\gamma</foo> on a processor that doesn't know this is today's
entity syntax will see that as element content of 6 characters \ g a m m a
In particular the system would provide no warning that anything had been
misunderstood.

whereas <foo>&gamma;</foo> will be seen as a well formed or validity
error depending on what's in the <!DOCTYPE. So experiences gained by
experimenting with \gamma won't really give a good indication of
the user experience if the syntax was switched to &gamma;

In practice I'd like to just use a standard SGML or XMl catalog system
to default a DTD containing entity declarations on to well formed
documents that don't have a doctype but do have entity references,
Apart from this dtd defaulting everything else could proceed as before
and it would not really disrupt my current XML processing practices in
the way that inserting a completely different macro expansion step would
do (and does).

Of course if I use an SGML system, that works now, I can have
<math>
<mo>&gamma;</mo>
</math>
and sp will tell me it's valid if I default the mathml dtd on to
documents with top level element math.  Basically the "experiment" that
I want to do is to be able to say that is pukka XML and the fragment
that I actually pass around is well formed XML.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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.