<xsl:transform
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0"
 xmlns      ="http://www.w3.org/1999/xhtml"
 xmlns:h    ="http://www.w3.org/1999/xhtml"
 xmlns:dc   ="http://purl.org/dc/elements/1.1/" 
 xmlns:foaf ="http://xmlns.com/foaf/0.1/"
 xmlns:r    ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 >

<!-- $Id: pgdata.xsl,v 1.1 2006/02/06 22:36:27 connolly Exp $ -->

<xsl:output method="xml" indent="yes"/>

<xsl:template match="h:html">
  <!-- title/date scraping lifted from
       group-scrape.xsl,v 1.4 2001/12/03 16:18:51
       grokWho.xsl,v 1.7 2006/02/06 22:26:13
  -->
  <xsl:variable name="RCSDate"
		select = 'normalize-space(substring-before(substring-after(
			  h:body/h:address,
			  concat("$", "Date:")), "$"))'/>
  <!-- convert yyyy/mm/dd hh:mm:ss to yyyy-mm-ddThh:mm:ssZ -->
  <xsl:variable name="ISODate"
		select = 'concat(translate($RCSDate, "/ ", "-T"), "Z")'/>
  <r:Description r:about="">
    <dc:date><xsl:value-of select="$ISODate"/></dc:date>
    <dc:title><xsl:value-of select="h:head/h:title"/></dc:title>
  </r:Description>
</xsl:template>

</xsl:transform>
