Dinky little XML and XSL GIFs for web pages?

Chris Lilley chris at w3.org
Sun May 2 01:40:18 BST 1999



Lisa Rein wrote:
> 
> i agree there should be an icon.  but is should be TEXT-BASED! :-)
> let's keep things clean, shall we?

Grin. OK, so here is a *text based* icon. 

Indeed, it is well formed XML. Its even valid.

And when gzipped, simulating the transmission size over HTTP/1.1, it is
2,687 bytes which is fair enough. I attach a PNG to show what it
actually looks like. A 128color, 96 by 61 pixel GIF was 3,022 bytes, the
same image was 2,620 bytes as a PNG and the 24-bit version was 3,610
bytes as a q85, 444, progressive JPEG (anything less and it looked
awful. Logos are bad for jpef compression).

The path data was programatically generated, and I didn't write the
program, so I can't give it out yet. The rest was hand written.

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" 
  "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
<svg width="96.3pt" height="60.8pt" style="transform:fit(0 0 96.3
60.8)">
<g id="logo" style="transform:matrix(1 0 0 -1 -246.7 418.1);">
  <title>Made with XML and XSL</title>
  <desc>
    A logotype for XML documents styled with XSL,
    stressing the common X.
  </desc>
  <g style="fill:none;">
    <defs>
      <lineargradient id="one">
        <gradientstop offset="0" color="#B0C0FC"/>
	<gradientstop offset="1" color="#1C407D"/>
      </lineargradient>
      <radialgradient id="two">
	<gradientstop offset="0" color="#34AACD"/>
	<gradientstop offset="1" color="#1C407D"/>
      </radialgradient>
      <radialgradient id="three">
	<gradientstop offset="0" color="#FFF0C4"/>
	<gradientstop offset="1" color="#C75A42"/>
      </radialgradient>
     </defs>
	<path style="fill-params:73.2 122.9 76.5 122.9;fill:url(#one);"
d="M336.7,366.7h-75.4v45.6h75.4v-45.6z "/>		
	  <g style="fill-params:120.2 109.8 121.9 109.8 120.2
109.8;fill:url(#two);">
		<g style="fill:url(#three);">
		  <path
d="M295.8,368.6c6.0,0.8,10.7,1.7,14.1,2.8c3.4,1.1,5.2,2.1,5.2,3.1c0,0.6-0.5,1.1-1.4,1.4c-0.9,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0.9,4.3c-0.1,0.3-0.4,0.6-0.9,1.0c-0.5,0.3-0.7,0.7-0.7,1.2c0,0.8,0.6,1.4,1.9,2.0c0.5,0.2,0.8,0.4,1.1,0.5c0.3,0.2,0.8,0.6,1.6,1.3c0.7,0.7,1.3,1.0,1.8,1.0c0.4,0,0.7-0.1,0.9-0.4c0.2-0.3,0.3-0.8,0.3-1.5c0-2.2,0.1-4.3,0.3-6.5c0.2-2.2,0.5-4.3,0.9-6.4c4.9,5.5,8.5,9.4,11.1,11.5c2.5,2.1,4.6,3.2,6.1,3.2c0.5,0,0.9-0.2,1.2-0.6c0.3-0.4,0.4-0.9,0.4-1.6c0-1.0-0.3-1.9-1.0-2.9c-0.7-0.9-1.4-1.4-2.0-1.4c-0.1,0-0.4,0.0-0.9,0.1c-0.4,0.1-0.8,0.1-1.1,0.1c-1.1,0-2.5-0.7-4.1-2.0c-1.6-1.4-4.6-4.7-9.1-10.1c0.9-4.5,2.4-8.2,4.6-11.1c2.2-2.9,4.3-4.3,6.5-4.3c0.7,0,1.2,0.2,1.6,0.7c0.4,0.5,0.6,1.2,0.6,!
2.1v0.7c0,1.3,0.4,2.4,1.1,3.4c0.7,1.0,1.5,1.5,2.3,1.5c0.5,0,0.8-0.2,1.1-0.7c0.3-0.5,0.4-1.1,0.4-1.9c0-1.4-0.2-2.6-0.7-3.6c-0.5-1.0-1.1-1.8-2.1-2.4c-0.5-0.3-1.3-0.9-2.2-1.8c-2.0-1.8-3.9-2.8-5.6-2.8c-2.7,0-5.1,1.3-7.1,3.9c-2.0,2.6-3.6,6.3-4.7,11.1z
"/>
	</g>
  </g>
</g>
</svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlsl.png
Type: image/png
Size: 25065 bytes
Desc: not available
Url : http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990502/5c7f7a5c/xmlsl.png


More information about the Xml-dev mailing list