[Home] [By Thread] [By Date] [Recent Entries]
Ross Buchanan wrote:
I <xsl:template match="/doc/p"> <p class="p"><xsl:value-of select="." /></p> </xsl:template> Btw, you can get rid of the parent-node matching in your example. There seems no need to test for the parent of 'p' being 'doc'. Like this: <xsl:template match="p"> <p class="p"><xsl:value-of select="." /></p> </xsl:template> ... etc for the other template matches -- Abel
|

Cart



