[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: function last() not matching the last element tag
> This template will probably work (to match last 'p' element) > > <xsl:template match="p[not(following-sibling::p)]"> > <!-- template contents --> > </xsl:template> > Only if all the p elements are siblings (in which case p[last()] would also work). The following should always work: <xsl:template match="p[not(following::p)]"> <!-- template contents --> </xsl:template> Michael Kay
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|