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

STX: Short-Tag Compression utilities beta available

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Tue, 20 Oct 1998 04:00:12 +1000

short tag
STX (short-tagged XML) is a compression scheme for XML documents, using ISO
8879 short-tag ommission. I have made a compression and decompression
utility for these, stx and unstx.  These are now available in beta for
anyone who wants to try them, as vanilla C source code or Win32 shell
executables (gcc, CygWIN32).

I have tested them on James Clark's test archive, Jon Bosak's OT, and the
XML spec. (I used xmlwf -d, which is James' great "canonical XML" converter,
and diff to test differences.) Compression gains are modest (2% to 6%), but
these gains seem to survive survive gzip (deflate) compression (and may
indeed improve compressibility). It is easy to create documents which
exhibit 80% or more compression, but such documents are artificial. I would
be surprised if the general rate of compression for well-suited documents
was much more than 25%. These rates are small, but this kind of compression
does not seem to disrupt further compressions to binary forms. Furthermore,
the compressed data is still editable text, and may be accepted by
conforming WebSGML applications.

This kind of compression is suited for use as an end-to-end compression:
with the ubiquity of intermediate point-to-point compression (e.g.
modem-to-modem), it is possible that binary end-to-end compression methods
are no more effective than this.

I am interested in getting test results from WWW documents which use
namespaces heavily, in particular database dumps and RDF.

Please email me if you are interested in trying them out. The source code
uses Mozilla license. Current version of the software should handle most
character encodings on UNIX hosts (not shift-JIS): EBCDIC and wide encodings
are passed through without alteration. On Win32, the 16-wide encodings and
shift-JIS will have problems.

Example of STX encoding.
========================
<?xml?>
<top>
	<p>blah</p>
      <p>blah<i>blah</i>blah</p>
	<p>blah</p>
	<p/>
	<p>blah<hr></hr><hr></hr></p>
	<p id="p1">blah</p>
</top>

will be compressed as:
<?stx><?xml?>
<top>
	<p>blah</>
      <>blah<i>blah</i>blah</>
	<>blah</>
	<p/>
	<p>blah<hr></><></></>
	<p id="p1">blah</>
</>


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!

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.