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

Re: <XML:SCRIPT>

  • From: David Megginson <david@m...>
  • To: xml-dev@i...
  • Date: Mon, 13 Jul 1998 11:14:41 -0400

xml delimiters
Simon St.Laurent writes:

 > If and when there are XML editing tools that are any good - and my
 > pessimism comes from my rather miserable experiences with even the
 > latest HTML tools - this may be true.  In the meantime, lots and
 > lots of experienced coders, the ones most likely to gravitate to
 > XML, are still going to be hand-coding.

By far the best solution is for developers to keep their scripts out
of line and point to them -- that lets each language (programming or
markup) be represented using its natural syntax.  The advantages are
quite significant:

1. Ease of authoring: you can create your script using tools
   customised for the script's language (such as an Emacs mode) --
   that way, you get syntax highlighting, paren matching, etc., and
   don't have to escape XML delimiters.

2. Ease of management: since the script is outside of the XML/HTML
   document, is easy to create, store, test, and revision separately.

3. Ease of analysis: someone else looking at your work can easily tell
   what is markup and what is code; you don't need an analyst who
   knows _both_ XML and the scripting language.

4. Modularity: since the script is self-contained, it is easy to
   replace it later without necessarily editing the original document.

5. Ease of Reuse: since the CSS, ECMAScript, or whatever stands alone,
   you can reuse the same script for many documents, and all documents
   will register changes instantly and automatically.

The disadvantage is that management becomes difficult when there are
dozens (or hundreds) of small code fragments rather than one large one
-- that is why my advice does not yet apply to literate programming
(at least, not until there's good tool support).


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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.