{% for ulist_open in ulist_open %}<ul class="iz-list iz-list--unordered" style="list-style-type: {{ LIST_TYPE }}">{% endfor %}
{% for ulist_open_default in ulist_open_default %}<ul class="iz-list iz-list--unordered">{% endfor %}
{% for ulist_close in ulist_close %}</ul>{% endfor %}

{% for olist_open in olist_open %}<ol class="iz-list iz-list--ordered" style="list-style-type: {{ LIST_TYPE }}">{% endfor %}
{% for olist_close in olist_close %}</ol>{% endfor %}

{% for listitem in listitem %}<li class="iz-list__item">{% endfor %}
{% for listitem_close in listitem_close %}</li>{% endfor %}

{% for quote_username_open in quote_username_open %}<blockquote class="iz-quote" cite="{{ USERNAME }}&nbsp;{{ L_WROTE }}{{ L_COLON }}">{% endfor %}
{% for quote_open in quote_open %}<blockquote class="iz-quote iz-quote--uncited">{% endfor %}
{% for quote_close in quote_close %}</blockquote>{% endfor %}

{% for quote_extended in quote_extended %}
<blockquote class="iz-quote">
	<xsl:if test="@post_url">
		<xsl:attribute name="cite"><xsl:value-of select="@post_url"/></xsl:attribute>
	</xsl:if>
	<xsl:if test="not(@author)">
		<xsl:attribute name="class">iz-quote iz-quote--uncited</xsl:attribute>
	</xsl:if>
	<xsl:if test="@author">
		<cite class="iz-quote__cite">
			<xsl:choose>
				<xsl:when test="@url">
					<a href="{@url}" class="postlink"><xsl:value-of select="@author"/></a>
				</xsl:when>
				<xsl:when test="@profile_url">
					<a href="{@profile_url}"><xsl:value-of select="@author"/></a>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="@author"/>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:text> </xsl:text>
			<xsl:value-of select="$L_WROTE"/>
			<xsl:value-of select="$L_COLON"/>

			<xsl:if test="@post_url">
				<xsl:text> </xsl:text>
				<a href="{@post_url}" class="iz-quote__jump" data-post-id="{@post_id}" onclick="if(document.getElementById(hash.substr(1)))href=hash">↩</a>
			</xsl:if>
			<xsl:if test="@msg_url">
				<xsl:text> </xsl:text>
				<a href="{@msg_url}" class="iz-quote__jump" data-msg-id="{@msg_id}">↩</a>
			</xsl:if>
			<xsl:if test="@date">
				<small class="iz-quote__date"><xsl:value-of select="@date"/></small>
			</xsl:if>
		</cite>
	</xsl:if>
	<xsl:apply-templates/>
</blockquote>
{% endfor %}

{% for code_open in code_open %}<div class="iz-codebox"><div class="iz-codebox__header"><span class="iz-codebox__title">{{ L_CODE }}{{ L_COLON }}</span><a class="iz-codebox__action" href="#" onclick="selectCode(this); return false;">{{ L_SELECT_ALL_CODE }}</a></div><pre class="iz-codebox__pre"><code>{% endfor %}
{% for code_close in code_close %}</code></pre></div>{% endfor %}

{% for inline_attachment_open in inline_attachment_open %}<div class="iz-inline-attach">{% endfor %}
{% for inline_attachment_close in inline_attachment_close %}</div>{% endfor %}

{% for b_open in b_open %}<strong>{% endfor %}
{% for b_close in b_close %}</strong>{% endfor %}

{% for u_open in u_open %}<span class="iz-underline">{% endfor %}
{% for u_close in u_close %}</span>{% endfor %}

{% for i_open in i_open %}<em>{% endfor %}
{% for i_close in i_close %}</em>{% endfor %}

{% for color in color %}<span class="iz-color" style="color: {{ COLOR }}">{{ TEXT }}</span>{% endfor %}

{% for size in size %}<span class="iz-size" style="font-size: {{ SIZE }}%; line-height: 1.3;">{{ TEXT }}</span>{% endfor %}

{% for img in img %}<img src="{{ URL }}" class="iz-postimg" alt="{{ L_IMAGE }}" loading="lazy" decoding="async" />{% endfor %}

{% for url in url %}<a href="{{ URL }}" class="postlink">{{ DESCRIPTION }}</a>{% endfor %}

{% for email in email %}
<a>
	<xsl:attribute name="href">
		<xsl:text>mailto:</xsl:text>
		<xsl:value-of select="@email"/>
		<xsl:if test="@subject or @body">
			<xsl:text>?</xsl:text>
			<xsl:if test="@subject">subject=<xsl:value-of select="@subject"/></xsl:if>
			<xsl:if test="@body"><xsl:if test="@subject">&amp;</xsl:if>body=<xsl:value-of select="@body"/></xsl:if>
		</xsl:if>
	</xsl:attribute>
	<xsl:apply-templates/>
</a>
{% endfor %}

{% for flash in flash %}&nbsp;{% endfor %}
