aExporter.addCssStyle( ".w30 { width: 30%; } " );
aExporter.addCssStyle( ".w20 { width: 20%; } " );
aExporter.addCssStyle( ".w15 { width: 15%; } " );
aExporter.addCssStyle( ".w10 { width: 10%; } " );
final Element body = aExporter.getBody();
body.addChild( H1 ).addContent( "I<sup>2</sup>C Analysis results" );
body.addChild( HR );
body.addChild( DIV ).addAttribute( "class", "date" ).addContent( "{date-now}" );
Element table, tr, thead, tbody;
table = body.addChild( TABLE ).addAttribute( "class", "w100" );
tbody = table.addChild( TBODY );
tr = tbody.addChild( TR );
tr.addChild( TH ).addAttribute( "colspan", "2" ).addContent( "Bus configuration" );
tr = tbody.addChild( TR );
tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "SDA" );
tr.addChild( TD ).addContent( "{sda-bus-config}" );
tr = tbody.addChild( TR );
tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "SCL" );
tr.addChild( TD ).addContent( "{scl-bus-config}" );
tbody = table.addChild( TBODY );
tr = tbody.addChild( TR );
tr.addChild( TH ).addAttribute( "colspan", "2" ).addContent( "Statistics" );
tr = tbody.addChild( TR );
tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "Decoded bytes" );
tr.addChild( TD ).addContent( "{decoded-bytes}" );
tr = tbody.addChild( TR );
tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "Detected bus errors" );
tr.addChild( TD ).addContent( "{detected-bus-errors}" );
table = body.addChild( TABLE ).addAttribute( "class", "w100" );
thead = table.addChild( THEAD );
tr = thead.addChild( TR );
tr.addChild( TH ).addAttribute( "class", "w30" ).addContent( "Index" );
tr.addChild( TH ).addAttribute( "class", "w15" ).addContent( "Time" );
tr.addChild( TH ).addAttribute( "class", "w20" ).addContent( "Hex" );
tr.addChild( TH ).addAttribute( "class", "w20" ).addContent( "Bin" );
tr.addChild( TH ).addAttribute( "class", "w20" ).addContent( "Dec" );
tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "ASCII" );
tbody = table.addChild( TBODY );
tbody.addContent( "{decoded-data}" );
return aExporter;
}