Подскажите, пожалуйста, а как мне корректно отобразить название информационной группы в шаблоне элемента? Нужно в тайтл и в альт картинки это поставить. ДЛя наглядности выделил в коде.
Заранее благодарю.
<!-- Шаблон выводит ссылки подгруппы информационного элемента -->
<xsl:template match="informationsystem_group" mode="groups">
<ul class='etabs'>
<xsl:for-each select=". | following-sibling::informationsystem_group[position() < $n]">
<li class='tab'>
<a href="#{@id}" rel="nofollow"><xsl:value-of disable-output-escaping="yes" select="name"/></a><!-- <xsl:text> </xsl:text><span class="count">(<xsl:value-of select="items_total_count"/><xsl:text> фото </xsl:text>)</span> -->
</li>
</xsl:for-each>
</ul>
<xsl:for-each select=". | following-sibling::informationsystem_group[position() < $n]">
<div id="{@id}">
<ul class="gallery cf">
<xsl:variable name="group_id" select="@id" />
<xsl:apply-templates select="/informationsystem//informationsystem_item[informationsystem_group_id = $group_id]"/>
</ul>
</div>
</xsl:for-each>
</xsl:template>
<!-- Шаблон вывода информационного элемента -->
<xsl:template match="informationsystem_item">
<li>
<a class="gallery-item" href="{dir}{image_large}" title="{name}"><img src="{dir}{image_small}" alt="{name}" /></a>
</li>
</xsl:template>