| 1 |
ledger-cli xml2html XLST |
| 2 |
|
| 3 |
This XLST produces a browsable html page out of the xml files created by ledger xml. |
| 4 |
|
| 5 |
It might be used in the future to create a ledger html output. |
| 6 |
|
| 7 |
usage: |
| 8 |
|
| 9 |
from existing xml file: |
| 10 |
|
| 11 |
xsltproc --output output-ledger.html ledger.xsl input-ledger.xml |
| 12 |
|
| 13 |
from ledger file directly: |
| 14 |
|
| 15 |
ledger -f input.ledger xml | xsltproc --output output-ledger.html ledger.xsl - |
| 16 |
|
| 17 |
parameters: |
| 18 |
|
| 19 |
- `quantityFormat`: format for quantities, default is '#.00' (2 decimal |
| 20 |
places). If you want no decimals, use `xsltproc --param quantityFormat "'#'" |
| 21 |
...`, see the xslt spec for details: |
| 22 |
https://www.w3.org/TR/1999/REC-xslt-19991116/#function-format-number |