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

Re: Scripting and XML

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "Xml-Dev (E-mail)" <xml-dev@i...>
  • Date: Tue, 21 Oct 1997 01:20:18 +1000

java1 sun

 
> From: Simeon Simeonov <simeons@a...>
 
> I absolutely agree with this point: markup will have to be added to aid
> external scripts. But that could be inconvenient. Yes, it is more powerful.
 
> Again, in principle I agree. However, I don't think that this approach is
> scalable for some applications. I can easily think of more than a 100
> classes of textual input that I would like to validate. I would find it
> confusing to have to work with more than a 100 tags just for input
> validation. For not very common input types, I would prefer your third
> example to the fourth one. Essentially, I am arguing against tag number
> explosion.
 
Which is why you should not use elements but processing instructions.
Don't pollute the element space those things that are not elements.

The first token in a processing instruction should identify what the
"target" of the processing instruction is.  (This might be identified
formally in a notation declaration too.)  So you can have
a million different types of processing instructions added, one
for every flavour of Java or Javascript or ECMAscript or everything
called dynamic HTML or serverside includes.  All at the same
time, all clearly labelled.  

e.g. {sun-java1 ...}{ms-java ...}{sun-java1.1 ...}

And the processing instructions allow markup that does not follow the
bondaries of the elements.  You can start something in the middle of
one string in one element and end it somewhere in a cousin.

There is a place for putting scripts in nice elements, for those
that act globally, or get invoked by user agents, but inline 
scripts that merely process some text automatically are better done
in processing instructions rather than corrupt the element structure.


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.