nival писал(а):
Пожалуйста, продемонстрируйте хоть один пример
Я сделал так, может кому-то пригодиться)
Цитата:
<!-- Шаблон вывода информационного элемента -->
<xsl:template match="informationsystem_item">
<xsl:variable name="url_without_slash" select="substring(url, 1, string-length(url) - 1)"/>
<h1>
<a href="{$url_without_slash}" hostcms:id="{@id}" hostcms:field="name" hostcms:entity="informationsystem_item">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</h1>
<xsl:if test="description != ''">
<div hostcms:id="{@id}" hostcms:field="description" hostcms:entity="informationsystem_item" hostcms:type="wysiwyg"><xsl:value-of disable-output-escaping="yes" select="description"/></div>
</xsl:if>
<table width="770" border="0" align="center" cellpadding="0" id="main_news">
<tr>
<th align="right"><a href="{$url_without_slash}" class="main_news">Подробнее...</a></th>
</tr>
</table>
</xsl:template>