reportDescriptionEmix.xml 1.5 KB

1234567891011121314
  1. {% if report_description.measurement is defined and report_description.measurement is not none %}
  2. <{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:{{ report_description.measurement.name }} xmlns:scale="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" >
  3. <{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemDescription>{{ report_description.measurement.description }}</{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemDescription>
  4. <{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemUnits>{{ report_description.measurement.unit }}</{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemUnits>
  5. <scale:siScaleCode>{{ report_description.measurement.scale }}</scale:siScaleCode>
  6. {% if report_description.measurement.power_attributes %}
  7. <power:powerAttributes>
  8. <power:hertz>{{ report_description.measurement.power_attributes.hertz }}</power:hertz>
  9. <power:voltage>{{ report_description.measurement.power_attributes.voltage }}</power:voltage>
  10. <power:ac>{{ report_description.measurement.power_attributes.ac|booleanformat }}</power:ac>
  11. </power:powerAttributes>
  12. {% endif %}
  13. </{% if report_description.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:{{ report_description.measurement.name }}>
  14. {% endif %}