From bknr at bknr.net Sat Oct 14 06:59:37 2006
From: bknr at bknr.net (bknr at bknr.net)
Date: Sat, 14 Oct 2006 02:59:37 -0400 (EDT)
Subject: [bknr-cvs] r1985 - in branches/xml-class-rework/projects/bos: .
statistics
Message-ID: <20061014065937.0E6B248145@common-lisp.net>
Author: hhubner
Date: 2006-10-14 02:59:35 -0400 (Sat, 14 Oct 2006)
New Revision: 1985
Added:
branches/xml-class-rework/projects/bos/statistics/
branches/xml-class-rework/projects/bos/statistics/Makefile
branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg
branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt
Log:
Generate SVG charts from statistical data.
Added: branches/xml-class-rework/projects/bos/statistics/Makefile
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/Makefile 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/Makefile 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,21 @@
+
+BASE_URL = http://192.168.254.132:8080/reports-xml
+YEAR = 2005
+LOGIN = ?__username=hans&__password=ognep
+
+GRAPHICS = contracts-by-week.svg
+
+all:
+ $(MAKE) graphics YEAR=2005
+ $(MAKE) graphics YEAR=2006
+
+graphics: $(GRAPHICS)
+
+.SUFFIXES: .lxsl .xsl .svg
+
+.lxsl.xsl:
+ xsltproc -o $@ loop-compiler.xslt $*.lxsl
+
+.xsl.svg:
+ xsltproc -o $*.xml $*.xsl '$(BASE_URL)/$*/$(YEAR)$(LOGIN)'
+ xsltproc -o $*-$(YEAR).svg buildSVGLineChart.xsl $*.xml
\ No newline at end of file
Property changes on: branches/xml-class-rework/projects/bos/statistics/Makefile
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:eol-style
+ native
Added: branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,827 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate(315,
+
+
+
+
+
+,1014)
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+ vertical
+
+
+
+
+
+
+
+
+
+
+ 1
+
+ rotate(, ,
+
+
+
+
+ )
+
+ text-anchor:
+
+ end
+ start
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ horizontal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -150
+ 150
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ circle
+ red
+
+
+ stroke:;fill:
+
+
+ ShowTooltip(evt,'')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+"
+
+
+
+
+
+ 0
+
+ vertical
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+ false
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text-anchor:
+
+ end
+ start
+
+ ;font-size:
+
+ 40
+ 40
+ 20
+
+
+
+
+
+
+
+
+
+
+
+ horizontal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ 1000
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ end
+ start
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Property changes on: branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,75 @@
+
Added: branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,75 @@
+
Added: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+ 52
+ 0
+
+ Contracts by week for year
+
+
+
+
+
+ true
+
+
+
+
+
+
Property changes on: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,2 @@
+
+1142193624195106473849910201129121413131417151516317818719102015219222823122482519261527372816291130631113212337341035663683732381339154016412152066Contracts by week for year 200620true40true60true
Added: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+ 52
+ 0
+
+ Contracts by week for year
+
+
+
+
+
+
+
+
+
+ true
+
+
Property changes on: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt 2006-09-24 19:13:31 UTC (rev 1984)
+++ branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt 2006-10-14 06:59:35 UTC (rev 1985)
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error(s) detected
+
+
+
+
+
+
+ File generated by translating loops into recursive template calls.
+ XSLT Loop Compiler, Version 1.0
+ GPL (c) O. Becker
+
+
+
+
+
+
+
+
+
+
+
+ Missing required attribute 'name' of '
+ '
+
+ .
+
+
+
+ Missing required attribute 'from' of '
+ '
+
+ .
+
+
+
+ Missing required attribute 'to' of '
+ '
+
+ .
+
+
+
+
+ Unknown attribute '
+
+ ' of '
+ '
+
+ .
+
+
+
+
+
+
+
+
+ Missing required attribute 'test' of '
+ '
+
+ .
+
+
+
+
+ Unknown attribute '
+
+ ' of '
+ '
+
+ .
+
+
+
+
+
+ Forbidden
+
+
+ text '
+
+
+
+ element '
+
+
+
+ ' - expected '
+
+ :variable', '
+
+ :do', '
+
+ :last' or '
+
+ :update'
+
+ .
+
+
+
+
+ Warning: '
+ ' contains no '
+
+ :update' - infinite loop!
+
+
+
+
+
+
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :do'
+
+ .
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :last'
+
+ .
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :update'
+
+ .
+
+
+
+
+
+
+
+ '
+ ' must be an immediate child of '
+
+ :while'
+
+ .
+
+
+
+ Unknown attribute '
+
+ ' of '
+ '
+
+ .
+
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :do'
+
+ .
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :last'
+
+ .
+
+
+
+ '
+ ' must not follow a preceding '
+
+ :update'
+
+ .
+
+
+
+
+
+
+
+
+ '
+ ' must be an immediate child of '
+
+ :for' or '
+
+ :while'
+
+ .
+
+
+
+ Missing required attribute 'name' of '
+ '
+
+ .
+
+
+
+
+ Unknown attribute '
+
+ ' of '
+ '
+
+ .
+
+
+
+
+ '
+ ' for variable '
+
+ ' already defined
+
+ .
+
+
+
+
+
+
+
+
+
+
+ Unknown element '
+ '
+
+ .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >=
+ <=
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cannot update variable '
+
+ ' - not locally visible at parent node '
+ '
+
+ .
+
+
+
+
+
+
+
+
+
+
+
+
+
Property changes on: branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt
___________________________________________________________________
Name: svn:executable
+ *
From bknr at bknr.net Sat Oct 14 07:00:18 2006
From: bknr at bknr.net (bknr at bknr.net)
Date: Sat, 14 Oct 2006 03:00:18 -0400 (EDT)
Subject: [bknr-cvs] r1986 - branches/xml-class-rework/projects/bos/statistics
Message-ID: <20061014070018.2B3044E009@common-lisp.net>
Author: hhubner
Date: 2006-10-14 03:00:17 -0400 (Sat, 14 Oct 2006)
New Revision: 1986
Removed:
branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg
branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml
Modified:
branches/xml-class-rework/projects/bos/statistics/
Log:
Remove generated files
Property changes on: branches/xml-class-rework/projects/bos/statistics
___________________________________________________________________
Name: svn:ignore
+ contracts-by-week.xml
*.svg
Deleted: branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg 2006-10-14 06:59:35 UTC (rev 1985)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2005.svg 2006-10-14 07:00:17 UTC (rev 1986)
@@ -1,75 +0,0 @@
-
Deleted: branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg 2006-10-14 06:59:35 UTC (rev 1985)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week-2006.svg 2006-10-14 07:00:17 UTC (rev 1986)
@@ -1,75 +0,0 @@
-
Deleted: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml 2006-10-14 06:59:35 UTC (rev 1985)
+++ branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xml 2006-10-14 07:00:17 UTC (rev 1986)
@@ -1,2 +0,0 @@
-
-1142193624195106473849910201129121413131417151516317818719102015219222823122482519261527372816291130631113212337341035663683732381339154016412152066Contracts by week for year 200620true40true60true
From bknr at bknr.net Sat Oct 14 07:05:32 2006
From: bknr at bknr.net (bknr at bknr.net)
Date: Sat, 14 Oct 2006 03:05:32 -0400 (EDT)
Subject: [bknr-cvs] r1987 - branches/xml-class-rework/projects/bos/statistics
Message-ID: <20061014070532.AA3F358000@common-lisp.net>
Author: hhubner
Date: 2006-10-14 03:05:32 -0400 (Sat, 14 Oct 2006)
New Revision: 1987
Modified:
branches/xml-class-rework/projects/bos/statistics/Makefile
Log:
Remove login
Modified: branches/xml-class-rework/projects/bos/statistics/Makefile
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/Makefile 2006-10-14 07:00:17 UTC (rev 1986)
+++ branches/xml-class-rework/projects/bos/statistics/Makefile 2006-10-14 07:05:32 UTC (rev 1987)
@@ -1,7 +1,7 @@
BASE_URL = http://192.168.254.132:8080/reports-xml
YEAR = 2005
-LOGIN = ?__username=hans&__password=ognep
+LOGIN =
GRAPHICS = contracts-by-week.svg
@@ -18,4 +18,5 @@
.xsl.svg:
xsltproc -o $*.xml $*.xsl '$(BASE_URL)/$*/$(YEAR)$(LOGIN)'
- xsltproc -o $*-$(YEAR).svg buildSVGLineChart.xsl $*.xml
\ No newline at end of file
+ xsltproc -o $*-$(YEAR).svg buildSVGLineChart.xsl $*.xml
+ rm $*.xml
\ No newline at end of file
From bknr at bknr.net Sat Oct 14 07:07:34 2006
From: bknr at bknr.net (bknr at bknr.net)
Date: Sat, 14 Oct 2006 03:07:34 -0400 (EDT)
Subject: [bknr-cvs] r1988 - branches/xml-class-rework/projects/bos/statistics
Message-ID: <20061014070734.155C158000@common-lisp.net>
Author: hhubner
Date: 2006-10-14 03:07:33 -0400 (Sat, 14 Oct 2006)
New Revision: 1988
Modified:
branches/xml-class-rework/projects/bos/statistics/Makefile
branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt
Log:
remove x bits
Property changes on: branches/xml-class-rework/projects/bos/statistics/Makefile
___________________________________________________________________
Name: svn:executable
- *
Property changes on: branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
___________________________________________________________________
Name: svn:executable
- *
Property changes on: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
___________________________________________________________________
Name: svn:executable
- *
Property changes on: branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
___________________________________________________________________
Name: svn:executable
- *
Property changes on: branches/xml-class-rework/projects/bos/statistics/loop-compiler.xslt
___________________________________________________________________
Name: svn:executable
- *
From bknr at bknr.net Sat Oct 14 07:51:44 2006
From: bknr at bknr.net (bknr at bknr.net)
Date: Sat, 14 Oct 2006 03:51:44 -0400 (EDT)
Subject: [bknr-cvs] r1989 - in branches/xml-class-rework/projects/bos: m2
payment-website/images payment-website/images/statistics
statistics worldpay-test
Message-ID: <20061014075144.D76DB5831F@common-lisp.net>
Author: hhubner
Date: 2006-10-14 03:51:44 -0400 (Sat, 14 Oct 2006)
New Revision: 1989
Added:
branches/xml-class-rework/projects/bos/payment-website/images/statistics/
branches/xml-class-rework/projects/bos/worldpay-test/reports-xml-handler.lisp
branches/xml-class-rework/projects/bos/worldpay-test/rss.lisp
Removed:
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.xsl
Modified:
branches/xml-class-rework/projects/bos/m2/m2.lisp
branches/xml-class-rework/projects/bos/statistics/
branches/xml-class-rework/projects/bos/statistics/Makefile
branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
branches/xml-class-rework/projects/bos/statistics/contracts-by-week.lxsl
branches/xml-class-rework/projects/bos/worldpay-test/packages.lisp
branches/xml-class-rework/projects/bos/worldpay-test/worldpay-test.asd
branches/xml-class-rework/projects/bos/worldpay-test/worldpay-test.lisp
Log:
XML statistics generation and batch SVG rendering.
Modified: branches/xml-class-rework/projects/bos/m2/m2.lisp
===================================================================
--- branches/xml-class-rework/projects/bos/m2/m2.lisp 2006-10-14 07:07:33 UTC (rev 1988)
+++ branches/xml-class-rework/projects/bos/m2/m2.lisp 2006-10-14 07:51:44 UTC (rev 1989)
@@ -387,3 +387,6 @@
(make-contract sponsor
(random-elt (cons (1+ (random 300)) '(1 1 1 1 1 5 5 10 10 10 10 10 10 10 10 10 10 10 10 10 30 30 30)))
:paidp t))))
+
+
+
\ No newline at end of file
Property changes on: branches/xml-class-rework/projects/bos/payment-website/images/statistics
___________________________________________________________________
Name: svn:ignore
+ *
Property changes on: branches/xml-class-rework/projects/bos/statistics
___________________________________________________________________
Name: svn:ignore
- contracts-by-week.xml
*.svg
+ contracts-by-week.xsl
contracts-by-week.xml
*.svg
Modified: branches/xml-class-rework/projects/bos/statistics/Makefile
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/Makefile 2006-10-14 07:07:33 UTC (rev 1988)
+++ branches/xml-class-rework/projects/bos/statistics/Makefile 2006-10-14 07:51:44 UTC (rev 1989)
@@ -1,7 +1,8 @@
BASE_URL = http://192.168.254.132:8080/reports-xml
YEAR = 2005
-LOGIN =
+LOGIN =
+OUTPUT_DIR = ../payment-website/images/statistics
GRAPHICS = contracts-by-week.svg
@@ -18,5 +19,5 @@
.xsl.svg:
xsltproc -o $*.xml $*.xsl '$(BASE_URL)/$*/$(YEAR)$(LOGIN)'
- xsltproc -o $*-$(YEAR).svg buildSVGLineChart.xsl $*.xml
+ xsltproc -o $(OUTPUT_DIR)/$*-$(YEAR).svg buildSVGLineChart.xsl $*.xml
rm $*.xml
\ No newline at end of file
Modified: branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl
===================================================================
--- branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl 2006-10-14 07:07:33 UTC (rev 1988)
+++ branches/xml-class-rework/projects/bos/statistics/buildSVGLineChart.xsl 2006-10-14 07:51:44 UTC (rev 1989)
@@ -21,7 +21,7 @@
-