Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Старожил


Сообщения: 236
Благодарности: 0

Профиль | Отправить PM | Цитировать


Народ, а как можно вот это улутшить?

PHP код: Выделить весь код

<xsl:template match="item">

        <
xsl:variable name="pos" select="position()"/>
        
        <
xsl:choose>
            <
xsl:when test="$pos=10 or $pos=20 or $pos=30 or $pos=40 or $pos=50 or $pos=60 or $pos=70 or $pos=80 or $pos=90 or $pos=100 or $pos=110 or $pos=120">
                <
xsl:value-of select="item"/><br/>
            </
xsl:when>
            <
xsl:otherwise>
                <
xsl:value-of select="item"/>
            </
xsl:otherwise>
        </
xsl:choose>
        
    </
xsl:template

а то както длинннннннно получилось

Отправлено: 21:20, 24-04-2007 | #213