Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Darkman_E34 16.12.2004 00:51
Проблемы с пониманием и красотой ещё остались, но всё-таки уже по чуть-чуть втягиваюсь<xsl:for-each select="section"> <xsl:if test="@state='off'"><td style="border-right: 1px solid #777777"><xsl:apply-templates select="."/></td></xsl:if> <xsl:if test="@state='on'"><td class="selected" style="border-right: 1px solid #777777"><xsl:apply-templates select="."/></td></xsl:if> </xsl:for-each> $navigation_xml[^xdoc::load[/templates/xml/navigation.xml]] $sections[^navigation_xml.select[/navigation/section]] ^for[i](0;$sections-1){ $node[$sections.$i] ^if(^node.getAttribute[uri] eq $request:uri){ ^node.setAttribute[state;on] }{ ^node.setAttribute[state;off] } }