Makefile
branchv_0
changeset 20 fb939d9baaf4
parent 18 f315b3d27a9d
child 25 8da11cce2c98
--- a/Makefile	Sat Sep 21 00:41:54 2019 +0200
+++ b/Makefile	Sat Sep 21 01:12:49 2019 +0200
@@ -24,3 +24,16 @@
 publish:
 	scp ssm.en.xhtml globalcode.info:/var/www/sane-software.globalcode.info/v_0/index.xhtml
 	scp style.css    globalcode.info:/var/www/sane-software.globalcode.info/v_0/
+
+
+# Prints a table with number of items in particular chapters:
+statistics:
+	cat ssm.en.xml \
+	    | relpipe-in-xmltable \
+		--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
+		--relation "chapter" \
+		    --records "//m:chapter" \
+		    --attribute "name" string "m:name" \
+		    --attribute "item_count" integer "count(descendant::m:item)" \
+	    | relpipe-out-tabular
+# try also relpipe-out-gui to get the chart