From db0632d7467fc504a865608939d808159d1eb28a Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Mon, 20 Apr 2026 14:27:38 +0200 Subject: [PATCH] feat: add XSLT to convert to Markdown --- xslt/generate_md_report.xsl | 108 +++ xslt/md_auto.xslt | 61 ++ xslt/md_formatting.xslt | 141 ++++ xslt/md_placeholders.xslt | 1239 +++++++++++++++++++++++++++++++++++ 4 files changed, 1549 insertions(+) create mode 100755 xslt/generate_md_report.xsl create mode 100644 xslt/md_auto.xslt create mode 100644 xslt/md_formatting.xslt create mode 100755 xslt/md_placeholders.xslt diff --git a/xslt/generate_md_report.xsl b/xslt/generate_md_report.xsl new file mode 100755 index 0000000..4f0a166 --- /dev/null +++ b/xslt/generate_md_report.xsl @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ### + + - + + + + + + + + + + + + + + #### + + + + + + + + + + #### + + + + + + diff --git a/xslt/md_auto.xslt b/xslt/md_auto.xslt new file mode 100644 index 0000000..30f9a3a --- /dev/null +++ b/xslt/md_auto.xslt @@ -0,0 +1,61 @@ + + + + + + + + + + + + - + + + + + + + + + + + + + - + + + + + + + + + + + + 0. + + + + + + + + + + + diff --git a/xslt/md_formatting.xslt b/xslt/md_formatting.xslt new file mode 100644 index 0000000..f3d2222 --- /dev/null +++ b/xslt/md_formatting.xslt @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + # + + # + + + + + + + + + + + + + + + + + + [ + + ]( + + ) + + + + + + ![ + + ]( + + ) + + + + + + ** + + ** + + + + + + * + + * + + + + + ``` + + ``` + + + + + + + + ` + + ` + + + + + + + + + + + - + + + + diff --git a/xslt/md_placeholders.xslt b/xslt/md_placeholders.xslt new file mode 100755 index 0000000..9ca07f8 --- /dev/null +++ b/xslt/md_placeholders.xslt @@ -0,0 +1,1239 @@ + + + + + + * * + + + + + + + + + + $ + + + £ + + + + WARNING: NO DENOMINATION FOUND + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + ( + + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + +   + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and + + + , + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + TBD + + + TBD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ WARNING: Cannot resolve placeholder + in - + ] + + + + + + + + element "" () is empty + referenced element not found + + + + + + + + + + + + + + + + + + + + + + + + + Cannot print denomination: not all fees in + service_breakdown have an equal denomination (tip: if most services are in + eur but one is in usd, add the usd fee to the description for that service + and use an estimated eur for the hourly rate or fee). + + + + + + + + + + + + - + + + + + + + + + + + + + .- + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + +