Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
К. В. 05.06.2006 19:48
Я пользуюсь этим XSL шаблоном:<?xml version="1.0" encoding="windows-1251" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="article"> <ul style="color: red; list-style-type: square"><xsl:apply-templates select="body | para" /></ul> </xsl:template> <xsl:template match="body"> <xsl:apply-templates select="para[1]" /> <xsl:apply-templates select="para[2]" /> <xsl:apply-templates select="para[3]" /> <xsl:apply-templates select="para[4]" /> <xsl:apply-templates select="para[5]" /> </xsl:template> <xsl:template match="para"> <li><span class="li"><xsl:value-of select="." /></span></li> </xsl:template> </xsl:stylesheet>