# HG changeset patch # User František Kučera # Date 1570355351 -7200 # Node ID a756214f1ee89554fbbf5b1cdabf0f10a2be01d9 # Parent a19312ab9db73c1349a090336690790969c778f7 examples: Sane software manifesto statistics using XMLTable/XPath (indentation, resume) diff -r a19312ab9db7 -r a756214f1ee8 relpipe-data/examples-in-xmltable-ssm-gui.xml --- a/relpipe-data/examples-in-xmltable-ssm-gui.xml Sun Oct 06 11:24:40 2019 +0200 +++ b/relpipe-data/examples-in-xmltable-ssm-gui.xml Sun Oct 06 11:49:11 2019 +0200 @@ -47,7 +47,8 @@

- + Using these tools we can get statistics and charts from any XML or other supported format like CSV, Recfile or a database. + We can also do advanced computations using SQL, Guile or AWK before piping the data to the GUI.

diff -r a19312ab9db7 -r a756214f1ee8 relpipe-data/examples/ssm-xmltable-1.makefile --- a/relpipe-data/examples/ssm-xmltable-1.makefile Sun Oct 06 11:24:40 2019 +0200 +++ b/relpipe-data/examples/ssm-xmltable-1.makefile Sun Oct 06 11:49:11 2019 +0200 @@ -5,11 +5,11 @@ --namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \ --relation "chapter" \ --records "//m:chapter" \ - --attribute "name" string "m:name" \ - --attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \ + --attribute "name" string "m:name" \ + --attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \ --attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \ - --attribute "informations" integer "count(descendant::m:item[m:type='information'])" \ - --attribute "items_total" integer "count(descendant::m:item)" \ + --attribute "informations" integer "count(descendant::m:item[m:type='information'])" \ + --attribute "items_total" integer "count(descendant::m:item)" \ > build/statistics.rp # Prints a table with number of items in particular chapters: