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

Re: scripts and PIs

  • From: Marcus Carr <mrc@a...>
  • To: XML-Dev Mailing list <xml-dev@i...>
  • Date: Fri, 15 Oct 1999 12:49:51 +1000

mrc scripts

"Simon St.Laurent" wrote:

> Suppose I declare a notation like:
> <!NOTATION ECMAScript SYSTEM "http://www.ecma.ch/stand/ECMA-262.htm">
> and then a PI like:
> <?ECMAScript {document.write("Hello, World!");}?>
> It seems more reasonable in many ways than
> <![CDATA[
> {document.write("Hello, World!");}
> ]]>
> Any thoughts on the subject?

I prefer PIs. I don't like the idea that the currrent mechanism to insert script also carries
an implied structural significance - that  might sometimes be true, but I'd prefer to be able
to make that decision. Also, I think that script is very much a "processing instruction" type
of thing. Would we then require/desire more control over PIs by allowing them to support
attributes though? If you had to wrap the PI in an element just so you had somewhere to store
other information it would seem not to buy much, but it would be interesting if the PI was
able to handle them as well. Even without attributes I prefer PIs - they seem more natural
than an element and a CDATA section.


Marcus Carr                      email:  mrc@a...
Allette Systems (Australia)      www:    http://www.allette.com.au
"Everything should be made as simple as possible, but not simpler."
       - Einstein

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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.