[Home] [By Thread] [By Date] [Recent Entries]
Terence wrote:
This message is late because it bounced due to me not using the right from address... You don't need to count the *descendants*, childs are enough. <xsl:apply-templates select="/album/photos/photo/*[count(child::node())=0]"/> You don't need to *count* the childs, simply testing if there is any is enough (child axis is implicit, you can remove 'child::', if you want): <xsl:apply-templates select="/album/photos/photo/*[not(node())]"/> <xsl:template match="photo/*[normalize-space(text())!='']"> !='' is implicit, you can remove it if you want. <xsl:template match="photo/*[normalize-space(text())]"> Regards, Joerg XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



