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

RE: Abbreviated Tag Names

  • From: Gavin Thomas Nicol <gtn@e...>
  • To: Don Park <donpark@d...>, Xml-Dev <xml-dev@l...>
  • Date: Sat, 10 Mar 2001 10:50:13 -0500

tagging names
> So, I have been thinking about abbreviated tag names and wanted your
> thoughts on the subject.  There are many aspects to this issue:
>
> 1) should schemas be expanded or an alternate version be used?
> 2) should a new namespace be defined or old namespace be reused?
> 3) what role does RDDL play?
> 4) should there be a dynamic abbreviation mechanism? [no, imho]

I don't know. If you take a document

  <purchase.order xmlns:po="...">
    <po:sku>123456789</po:sku>
    <num.items>23</num.items>
    ...
  </purchase.order>

and then run it through a processor, to produce

  <a>
    <b>123456789</b>
    <c>23</c>
    ...
  </a>

have the semantics changed? I would argue that to the naive application,
they have, *but* to the receiver, they are probably equivalent.

Just as a WAP gateway will encode and compress WML, what's wrong with
having an application-specific tag compression (it might even compress
text sequences as well)? FWIW. I'd be stripping out all the namespaces,
because they add nothing  to the data (in terms of semantics)... the
receiver *knows* the namespace(s).

So I guess the whole point here is that *if* you control the receiver,
and you can constrain the possible set of tags that it can interpret,
then you can always perform a bidirectional transformation to
shorten the tags.

I should note that a long time ago now, I performed an analysis of
the benefits of such minimization *after* compression. Typically,
it saves between 2.5% and 15% (using gzip), depending on the tagging
structures and the size of the document (information redundancy increases as
a function of document size, so the advantage decreases). I would
expect that with the block-sorting compression algorithms (bzip2),
the overall effect would be even less.




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.