[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Only child test
On 10/10/2013 15:34, Andre Cusson wrote:
Wouldn't "last() eq 1" or "last() gt 1" be both the fastest and clearest?
given <p><a/><b/><c/></p> then b has two siblings but if you go <xsl:apply-templates select="b"/> last() will be 1 in the template matching b but if you go <xsl:apply-templates /> Then it will be 3.
David
|
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
|