Re: [xsl] function last() not matching the last element tag

Subject: Re: [xsl] function last() not matching the last element tag
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 26 Jan 2007 17:51:52 +0100
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

Current Thread