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

Re: A little wish for short end tags

  • From: Jon.Bosak@e... (Jon Bosak)
  • To: xml-dev@i...
  • Date: Sat, 16 May 1998 09:49:42 -0700

little wish
[Gregg Reynolds:]

| Given: 
| 	1. Short tags
| 	2. Some non-trivial number of docs marked up with short-tags
| 	3. Some non-trivial number of DPH's desperate to hack at these docs;
| 
| Isn't it likely that some non-trivial number of XML normalizers will
| become at least as widespread as perl?  Thereby relieving our lonely
| hackers of some non-trivial measure of their desperation?

Nothing can match the brute simplicity of a one-line perl regexp
operating over unlimited amounts of data within a ksh or bash
command-line loop.  People with a programming background tend to find
this hard to understand, but there are a lot of folks out there in
publishing and everyday business management who know exactly what I'm
talking about.

A perl regexp is the *upper bound* of sophistication for this
constituency.  Please try, if you can, to imagine being faced with the
job of doing an element-specific mass search-and-replace over two
years' worth of company reports when all you know about XML is what
you can see by looking at the source, you've never heard of the
concept of a normalizer, and the only scripting tool you know how to
use is the Word or WordPerfect macro language.  You may never find
yourself in this position, but there are hundreds of thousands of
ordinary users who aren't going to be so lucky.

This is one of the reasons that many corporate SGML users made it a
policy years ago to normalize all SGML documents to expand the end
tags and why most SGML editors do this automatically every time a file
is saved.  SGML gives you the option of using empty end tags, and the
historical fact is that most large users, given this option and a
sufficient amount of experience with it, choose not to use it.  XML
simply enforces what many people faced with the management of large
amounts of tagged text adopted as good practice a long time ago and
provides the same guarantee of safe tagging across organizations that
has generally existed within them.

If you really like using shortcuts, then go all the way: get a genuine
SGML tool and define a DTD that allows not just end-tag minimization
but full omission of both start-tags *and* end-tags.  Knock yourself
out.  Just make sure to normalize the result before you call it XML
and ship it out to the rest of us to work with.

Jon


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.