<!-- 
 This file Copyright 2001 Jeffrey B Putnam
 Please Contact me - jefu@eou.edu - for information 
-->  

<xsl:transform
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0"
>

<xsl:output method="html"/>

<xsl:template match="swlist">
    <html>
    <head>
	<title> 
	    Some Software 
        </title> 
	<style type="text/css">
	   h1 { text-align: center ; } 
	   h2 { text-align: center ; } 

	   div.info  { text-align: center ; font-size:+2} 

	   div.dir0  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 0px } 
	   div.file0 {margin-left: 10px } 
	   div.desc0 {margin-left: 20px } 

	   div.dir1  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 20px } 
	   div.file1 {margin-left: 30px } 
	   div.desc1 {margin-left: 40px } 

	   div.dir2  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 40px } 
	   div.file2 {margin-left: 50px } 
	   div.desc2 {margin-left: 60px } 

	   div.dir3  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 60px } 
	   div.file3 {margin-left: 70px } 
	   div.desc3 {margin-left: 80px } 

	   div.dir4  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 80px } 
	   div.file4 {margin-left: 90px } 
	   div.desc4 {margin-left: 100px } 

	   div.dir5  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 100px } 
	   div.file5 {margin-left: 110px } 
	   div.desc5 {margin-left: 120px } 

	   div.dir6  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 120px } 
	   div.file6 {margin-left: 130px } 
	   div.desc6 {margin-left: 140px } 

	   div.dir7  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 140px } 
	   div.file7 {margin-left: 150px } 
	   div.desc7 {margin-left: 160px } 

	   div.dir8  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 160px } 
	   div.file8 {margin-left: 170px } 
	   div.desc8 {margin-left: 180px } 

	   div.dir9  { text-align: left ; font-size: +3 ; color: green ;  margin-left: 180px } 
	   div.file9 {margin-left: 190px } 
	   div.desc9 {margin-left: 200px } 

        </style> 
    </head>
    <body>
    <h1 align="center">
	Some Software 
    </h1>
    <p> 
	This is a snapshot of some of the software I've worked on or played with
        recently.  Mostly the programs are relatively short and not all of them are
        finished or functional.  Sometimes I'll start a program to try to understand
        something, or as a way to try out assignments, or build parts of programs 
        to use in assignments. 
    </p>
    <p> 
        Some of these were finished, but the finished bits 
        were deleted so I can use them in assignments in the future.  Many are 
        unfinished or only barely finished - sometimes I decided I understood the 
        problem well enough to stop and do something else, sometimes time got too 
        short and I abandoned the program, sometimes I just got bored. 
    </p> 
    <p> 
	In a few places there are multiple implementations for a problem.  Sometimes
        these are in different languages, sometimes they're different algorithms,
        sometimes they just correspond to my restarting a problem after a bit and 
        deciding to start more or less from scratch again.  
    </p> 
    <p> 
	In any case, I tend to keep things around as I find that I use and reuse bits
        and pieces of programs as time goes on - so I figured I might as well put them
        on this web site for all and sundry to enjoy.  
    </p> 	
    <p>
	If you are a student and have been assigned one of these problems in a class,
        you should be aware that searching the web is not something restricted to students.
        I've had good luck myself in finding the source code for students who have copied
        programs off the web and your instructors are likely to know how to do the same
        thing.  
    </p> 
    <p> 
	Some of these entries have descriptions, some not.  I'm adding descriptions slowly,
	but I'd rather write code than documentation (sigh), so it doesn't happen that quickly. 
    </p> 
    <p>
	Green entries are directories.  I've tried to indent things to show the structure. 
    </p> 
    <p> 
	I've tried to add copyright notices to all the relevant files.  Hope it worked. 
    </p> 
    <xsl:apply-templates select="dir"/> 

    </body>
    </html>
</xsl:template>

<xsl:template match="dir">
     <div class="dir{count(ancestor::*)}" >
              <xsl:value-of select="name"/>  
     </div> 
     <div class="desc{count(ancestor::*)}" >
	<xsl:value-of select="desc"/>
     </div> 
     <xsl:apply-templates select="file"/> 
     <xsl:apply-templates select="dir"/> 
</xsl:template> 

<xsl:template match="file">
      <div class="file{count(ancestor::*)}"> 
         <a href="{name}"> <xsl:value-of select="name"/> </a>
      </div> 
      <div class="desc{count(ancestor::*)}">
         <xsl:value-of select="desc"/> 
      </div> 
</xsl:template>

</xsl:transform> 