Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/autonoma.ca.git
calculators/README.md
# Build
-Build a calculator as follows:
+Convert the variables YAML file into XML:
``` bash
IVARS=$HOME/writing/free-food/story/variables.yaml
OVARS=variables.xml
java -jar $HOME/bin/yamlp.jar --regex '(\{\{(.*?)\}\})' < "${IVARS}" | \
yq -o=xml - > "${OVARS}"
```
-Transform the variables:
+Create an HTML form using an XSL file:
``` bash
-java -jar $HOME/archive/saxon/saxon-he-12.5.jar launch.xsl ../../../index.xsl
+java -jar $HOME/archive/saxon/saxon-he-12.5.jar ../../variables.xml launch.xsl > index.html
```
+
+The web page is built.

Updates build instructions

Author djarvis <email>
Date 2024-12-04 00:23:32 GMT-0800
Commit 63bc6d606e283a34e9f74ec9a20b15e341184dd0
Parent 4e15532
Delta 5 lines added, 3 lines removed, 2-line increase