<<%= element_name_prefix(criteria) %>Criteria moodCode="EVN" classCode="<%= reference_type_name(criteria.id) %>">
<%- if subset && subset.value -%>
<%- if subset.type == 'COUNT' -%>
<%= "highClosed=\"true\"" if subset.value.high && subset.value.high.inclusive? %>>
<%- if subset.value.low -%>
<%- end -%>
<%- if subset.value.high -%>
<%- end -%>
<%- else -%>
<%= xml_for_value(subset.value, 'value') %>
<%- end -%>
<%- end -%>
<%= element_name_prefix(criteria) %>Criteria>