# Calculators The calculators use XML from the variables associated with the story. These XML variables are transformed into HTML using XSLT. # Requirements Software requirements include: * [yamlp](https://bitbucket.org/djarvis/yamlp/) * [go-yq](https://github.com/mikefarah/yq) * Java # Build 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}" ``` Create an HTML form using an XSL file: ``` bash java -jar $HOME/archive/saxon/saxon-he-12.5.jar ../../variables.xml launch.xsl > index.html ``` The web page is built.