{% extends "base.html" %} {% block head %}{% endblock %} {% macro render_source_directory(directory, list_class='element-tree-children') %} {% endmacro %} {% macro leaf_row(node, kind_title) %} {% if node.kind != 'element' %}{{ node.kind }}{% endif %} {% if node.name %}{% if node.href %}{{ node.qualified_name }}{% else %}{{ node.qualified_name }}{% endif %}{% endif %} {% if node.min_occurs != "1" or node.max_occurs != "1" %}{{ node.min_occurs }}..{{ node.max_occurs }}{% endif %} {% if node.type_href %}{{ node.type_name }}{% elif node.type_name %}{{ node.type_name }}{% endif %} {% if node.abstract %}abstract{% endif %} {% if node.source_path %}{{ node.source_path.split('/')[-1] }}{% if node.source_line %}:{{ node.source_line }}{% endif %}{% endif %} {% if node.source_href %}Source{% endif %} {% endmacro %} {% macro render_tree(node, depth=0) %} {% set kind_title = {'group': 'Named model group', 'choice': 'Exactly one of the following', 'sequence': 'The following, in order', 'all': 'The following, in any order'}.get(node.kind) %}
  • {% if node.children %}
    {% if node.kind != 'element' %}{{ node.kind }}{% endif %} {% if node.name %}{{ node.qualified_name }}{% endif %} {% if node.min_occurs != "1" or node.max_occurs != "1" %}{{ node.min_occurs }}..{{ node.max_occurs }}{% endif %} {% if node.type_name %}{{ node.type_name }}{% endif %} {% if node.abstract %}abstract{% endif %} {% if node.href %}Details{% endif %} {% if node.source_path %}{{ node.source_path.split('/')[-1] }}{% if node.source_line %}:{{ node.source_line }}{% endif %}{% endif %} {% if node.source_href %}Source{% endif %}
    {% elif node.expand %}
    {{ leaf_row(node, kind_title) }}
    {% else %}
    {{ leaf_row(node, kind_title) }}
    {% endif %}
  • {% endmacro %} {% block content %}

    XSD documentation

    Schema structure

    Browse the element hierarchy defined by the supplied schema entry point. Expand a branch to see its children.

    {{ model.elements|length }} global elements{{ model.types|length }} global types

    Entry-point structure

    Element tree

    {% if model.tree_roots %} {% else %}

    No global elements were found in the supplied schemas.

    {% endif %}
    {% if model.elements %}
    All {{ model.elements|length }} global elements
    {% endif %} {% if model.types %}
    All {{ model.types|length }} global types
    {% endif %} {% if model.source_files %}
    All {{ model.source_files|length }} schema source files {% if model.source_files|rejectattr('referenced')|list %}

    Muted files are in the schema directory but not included or imported by the input schemas.

    {% endif %}
    {{ render_source_directory(source_tree, 'element-tree') }}
    {% endif %} {% endblock %}