Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
mashi 14.02.2006 13:55
<xsl:template name="trimTags"> <xsl:param name="string"/> <xsl:choose> <xsl:when test="contains($string, '<') and contains($string, '>')"> <xsl:call-template name="trimTags"> <xsl:with-param name="string" select="concat(substring-before($string, '<'),' ',substring-after($string, '>'))"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space($string)" /> </xsl:otherwise> </xsl:choose> </xsl:template>