[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Scripting and XML
> 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|