parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Ответ

Азат Разетдинов 11.05.2007 10:12 / 11.05.2007 10:13

main.xslt:
<xsl:template match='node()' mode='frame'>
	<xsl:apply-templates select='block' mode='frame'>
		<xsl:with-param name='color' select='#ff0000'/>
	</xsl:apply-templates>
</xsl:template>

<xsl:template match='block' mode='frame'>
	...
</xsl:template>
frame.xslt:
<xsl:import href='main.xslt'/>

<xsl:template match='node()' mode='frame'>
	<xsl:param name='color'>

	<table bgcolor='$color'><tr><td>
		<xsl:apply-imports mode='frame'/>
	</td></tr></table>
</xsl:template>
писал с головы, могут быть ошибки