|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: not matching empty text nodes.
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
|
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
|

Cart








