  {% capture invariants %}
            {% include StructureDefinition-{{[id]}}-inv.xhtml %}
          {% endcapture %}
          <!-- 218 is size of empty table -->
          {% unless invariants.size <= 218 %}
            <a name="inv"> </a>
            <!--Constraints  heading in the fragment -->
            {% include StructureDefinition-{{[id]}}-inv.xhtml %}
          {% endunless%}
        </div>
      </div>
    </div>
{% unless excludexml == 'y' %}
<!--    <a name="tabs-xml"> </a>
    <div id="tabs-x