forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Noels" <stev...@outerthought.org>
Subject RE: Graph data
Date Tue, 19 Feb 2002 23:23:31 GMT
John Morrison wrote:

> Hi Sam et al,
>
> I've been trying for *ages* to get the data into the form I want.

Well, I must say this was a non-trivial Muenchian grouping exercise :-|

But in the end, I learned a lot :-)

Using this sitemap fragment:

<map:match pattern="forrest/data2.xml">
  <map:generate type="directory" src="forrest">
    <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:generate>
  <map:transform src="stylesheet/combine-files.xsl"/>
  <map:transform type="xinclude"/>
  <map:transform src="stylesheet/group-by-week.xsl"/>
  <map:serialize type="xml"/>
  <!-- map:transform src="stylesheets/forrest/graph.xsl"/>
    <map:serialize type="svgxml"/ -->
</map:match>
<map:match pattern="forrest/data/*.xml">
  <map:generate src="forrest/{1}.xml"/>
  <map:transform src="stylesheet/add-data-attrs.xsl"/>
  <map:serialize type="xml"/>
</map:match>

and the attached stylesheets, it works out fine. The problem was mainly unwrapping the daily
log entries, I fixed this
by xincluding the datum elements instead of the data wrapper elements. Hopefully the transformation
pipeline won't be
too slow because of the amount of key's and for-each'es.

There's still a bit of dependencies on my local machine filesystem structure in the sitemap
fragment above: do we have a
place for storing stylesheets in CVS?

I'm really curious now to take a look at the SVG version ;-)

Regards,

</Steven>

Mime
View raw message