xsl-list
[Top] [All Lists]

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

2007-01-26 09:53:30
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--