From 7eaa74088b3e57f99369fc78bf2bb4a3e25b5a84 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 25 Oct 2021 01:37:59 +0200 Subject: ledger-cli xml2html XLST initial version --- contrib/html/README | 8 ++ contrib/html/ledger.xsl | 241 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 249 insertions(+) create mode 100644 contrib/html/README create mode 100644 contrib/html/ledger.xsl (limited to 'contrib') diff --git a/contrib/html/README b/contrib/html/README new file mode 100644 index 00000000..4bda6aec --- /dev/null +++ b/contrib/html/README @@ -0,0 +1,8 @@ +ledger-cli xml2html XLST + +This XLST produces a browsable html page out of the xml files created by ledger xml. + +It might be used in the future to create a ledger html output. + +usage: + xsltproc ledger.xsl input.ledger.xml > output.ledger.html diff --git a/contrib/html/ledger.xsl b/contrib/html/ledger.xsl new file mode 100644 index 00000000..2da66fde --- /dev/null +++ b/contrib/html/ledger.xsl @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + +
+ Accounts  + Transactions +
+ + + + + + + +
+ + +
+

Accounts

+ + + + + + + + + + + + + + + + + + + +
AccountAmountTotal
+ padding-left:em; + + #account- + + + +
+
+
+ + +
+

All Transactions

+ + + + + + + + + + + + + + + + + + + + + + + + + +
DatePayeeAccountAmountTotal
+ + + + + +
+ + #account- + + +
+
+
+ + + + + + + + + + + amount + + amount-positive + amount-negative + + + + + +   + + + + + + + + + + + + + + +   + + + + + +
-- cgit v1.2.3