A little wish for short end tags (Was: RE: SDD bogus)

Jarle Stabell jarle.stabell at dokpro.uio.no
Fri May 8 22:25:25 BST 1998

Paul Prescod wrote:
> If we
> presume that programmers are going to work through parsers, then why
> couldn't we leave GI's out of end tags and make XML substantially less
> verbose (qualitatively at least)? Anyhow, many people argue with some
> justification that regexp-based processing of the source files will still
> be very important and popular. I'm not convinced that the cost/benefit
> ratio is right, if we win over the awk hackers and annoy the document
> authors, but we will see.

(those who have found the discussion about short end tags tiresome 
years/months ago, please forgive me and don't read any further.)

I would love to see empty end tags making it into the standard in the 
future. In many cases, one only marks up single words, and then empty end 
tags would justify having longer and more descriptive GI's, when forced to 
write both start and end tags fully, one may be too tempted to use 
"cryptic"/abbreviated GI's.

Let's say your're making a markup language for documentating source code, 
which would be embedded inside comments in the source (like JavaDoc). Then 
you would prefer the tags to be as "silent" as possible during 
development/maintaince of the source code itself.


1. The method <MethodName>M1</MethodName> of the fantastic 
<ClassName>Class1</ClassName> can be used in situation 

to the "thinner":

2. The method <MethodName>M1</> of the fantastic <ClassName>Class1</> can 
be used in situation <Situation>X</>.

I think variant 2 is faster to read than variant 1, and you don't have to 
check the end-tags for misspellings.

The argument that compressing reduces/eliminates the size advantage of 
documents with empty end tags often doesn't apply, the document will often 
be stored uncompressed on users hard-disks, in databases and in memory.

Jarle Stabell

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list