Formatted Sections
Though in most cases per-record information can be presented using Tables you can use the Format element to fine tune the way records are presented.
<?xml version="1.0"?> <rep:Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rep="http://safe.epcc.ed.ac.uk/report" xmlns:par="http://safe.epcc.ed.ac.uk/parameter" xmlns:per="http://safe.epcc.ed.ac.uk/period" xmlns:fil="http://safe.epcc.ed.ac.uk/filter" xmlns:tab="http://safe.epcc.ed.ac.uk/table" xmlns:cha="http://safe.epcc.ed.ac.uk/chart" xmlns:fmt="http://safe.epcc.ed.ac.uk/format" xmlns:ato="http://safe.epcc.ed.ac.uk/atom"> <per:Period> <per:StartTime>29-09-2008</per:StartTime> <per:EndTime>29-10-2008</per:EndTime> </per:Period> <Title>Test Format</Title> <Heading>Format Section</Heading> <fmt:Format> <Stuff>Some ${JobID} stuff</Stuff><Queue>${Queue}</Queue> <Start>${StartedTimestamp}</Start> </fmt:Format> <fmt:Format> <fmt:IfDef required="JobID"><Required>Some ${JobID} stuff</Required></fmt:IfDef><Queue>${Queue}</Queue> <Start>${StartedTimestamp}</Start> </fmt:Format> </rep:Report>
The contents of a Format section act as a template which is duplicated for each record selected by the current Filter and Period with variable names in the template replaced by the value of the corresponding property.
Within a Format section an IfDef? element can be used to disable sections of the template if the corresponding property is not defined for the record being expanded.