forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <>
Subject Graph data
Date Mon, 18 Feb 2002 16:11:51 GMT
Hi Sam et al,

I've been trying for *ages* to get the data into the form I want.  A
which merges all the files is easy:

   <map:match pattern="forrest/data2.xml">
    <map:generate type="directory" src="docs/forrest-stats">
      <map:parameter name="depth" value="1"/>
      <map:parameter name="dateFormat" value="EEEE, dd/MM/yyyy h:mm:ss aa"/>
      <map:parameter name="include" value="(.*)xml"/>
    <map:transform src="stylesheets/forrest/combine-files.xsl"/>
    <map:transform type="xinclude"/>
    <map:serialize type="xml"/>
    <!-- map:transform src="stylesheets/forrest/graph.xsl"/>
    <map:serialize type="svgxml"/ -->

where combine-files.xsl is:

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"

<xsl:template match="/dir:directory">

<xsl:template match="dir:file">

<xsl:template match="*" priority="-1"/>


But I can't do the grouping.  What I'd like out (I think - this is open for
debate) is...

<?xml version="1.0"?>

  <data group="Downloads">
    <datum week="200143" total="2715"/>
	  <datum dir="axis" value="74"/>
	  <datum dir="batik" value="87"/>
	  <datum dir="cocoon" value="36"/> 
	  <datum dir="cocoon2" value="39"/> 
	  <datum dir="crimson" value="116"/> 
	  <datum dir="fop" value="241"/> 
	  <datum dir="soap" value="296"/> 
	  <datum dir="xalan-c" value="25"/> 
	  <datum dir="xalan-j" value="245"/> 
	  <datum dir="xang" value="7"/> 
	  <datum dir="xerces-c" value="368"/> 
	  <datum dir="xerces-j" value="1125"/> 
	  <datum dir="xerces-p" value="56"/>
  <data group="Subscribers">
    <event week="200126" date="29 Aug 2001" comment="2.1"/>
    <event week="200137" date="10 Oct 2001" comment="2.2"/>

But I can't get this (btw, events are in a seperate file).  If anybody has
(or, better yet, can produce an xslt to *do* it ;) I'd be much in debt.




War hath no fury like a non-combatant.
		-- Charles Edward Montague

Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

View raw message