Sample Commands
- <wr:chart .../> - Creates charts & graphs from the passed in data.
- <wr:escape select="/xpath"/> - writes the raw data as is to the report. This allows specific commands for each report type of any kind.
- <wr:forEach select="/xpath">... </wr:forEach> - will repeat the contents of the template between the forEach-end once for each items element matching the xpath in the xml file. Inside the forEach-end there can be commands like <wr:out select="./price"> to substitute in data.
- <wr:function select="./" function="SUM"/> - Performs a function on a set of data and outputs the result.
- <wr:html select="/xpath"/> - understands a subset of the html formatting commands and places them at this location in the report.
- <wr:if select="/xpath">... </wr:if> - will include the contents of the template between the if-end only if the specified element matching the xpath exists in the xml file. There is also a <wr:if test="${item}"/> to evaluate the if based on data elements.
- <wr:if select="/xpath">... <wr:else/>... </wr:if> - includes the contents of either the if or else part of the template, depending on if the specified element matching the xpath exists in the template.
- <wr:import url="/xpath"/> - replaces this with the contents of the file whose file name matches the xpath. Will handle .txt, .jpg, .jpeg, & .png files.
- <wr:link url="/xpath">... </wr:link> - The link pointed to by the xpath is associated with a hotspot of the text surrounded by the link/end.
- <wr:out select=":/xpath"/> - replaces this with the element matching the xpath from the xml file. Optional attributes are default, type, and pattern giving full control over the final text. There is also a <wr:out value="${item}"/> to display data elements.
- <wr:query select="./" var="base"/> - saves a dataset for later reference using ${base}
- <wr:set name="invoice" value="1358"/> - saves a value for later reference using ${invoice}
