Creating different types of output

Subject: Creating different types of output
From: Laurie Mann <laurie.mann@xxxxxxxxx>
Date: Mon, 19 Jun 2000 07:37:03 -0400
About two months ago, I converted one of my HTML sites
(Dead People Server - to XML.
The XML source file is a long series of alphabetized records, 
each cluster of alphabetized records enclosed by a pair of "dpsletter" tags.
The alphabetic listings are created using a simple XSLT translation.

I would also like to create annual listings from the same source, 
and I didn't think it would be all that hard.  However, 
it seems to require more programming
skills than I have (which are close-to-none).

The source file has all the years coded in the XML file. When I run
my "build year" script, I get one HTML file for each year.  However, I
only get one record for each year, and that record is always the last
alphabetical listing for that year.  So what seems to be happening 
is that each time a new year is encountered, the year output file is
overwritten, rather than the new record being appended to the
existing output file.

Is there an easy answer to this problem? 

XML file excerpt:


her>Made a comeback in <movie>Cocoon</movie></other></dpsrecord>


nnis great/writer</job><dead value="yes">
ar></birthdate><other>Broke the color barrier in men's tennis, wrote a very
moving memoir, <ulink
value="amazon"><book>Days of Grace</book></other></dpsrecord>


XSL file excerpt:

<xsl:stylesheet xmlns:xsl="";
                xmlns:xt=""; version="1.0"
<!-- XML structure and XSL script copyright 2000 Laurie D. T. Mann -->

<xsl:output method="html" indent="no"/>

<xsl:template match="set/dpsletter/dpsrecord">
<xsl:variable name="filename"><xsl:value-of
  <xt:document href="{concat($filename,'.shtml')}">
       <title>Dead People Server - People Who Died in the Year
<xsl:value-of select="deathdate/year"/></title><xsl:text>
       <LINK REL="stylesheet" HREF="dps.css" TYPE="text/css" /><xsl:text>
       </ul>       </body>




     <title>Dead People Server - People Who Died in the Year 1993</title>
     <LINK REL="stylesheet" HREF="dps.css" TYPE="text/css">
     </head><body><ul> <a
class="name">Arthur  Ashe</span> </a> 
     (tennis great/writer) --  Dead.  AIDS.    Died Feb 6, 1993. 
     Born Jul 10, 1943. Broke the color barrier in men's tennis, wrote a
very moving memoir, <a
class="am"><i>Days of Grace</i></a></ul></body></html>

 XSL-List info and archive:

Current Thread