Recusrive COUNT of specific elements in XSL 2.0

Hi, One requirement is for me to count instances of images within a corpus of documents, therefore I need to get the # of images per document. I'm trying to do <TotalImages value="I wish to copy the result of the below xsl:value-of here"> <xsl:value-of select="count(SOMETHING[.])"/> </TotalImages> I know that XSLT 2.0 counts in sequences, therefore I'm hoping that at least my [.] is correct. As the image elements are scattered throughout the DOM structure so using XPath predicates is not how I wish to do this. We all know the typical occurrence of the relevant element --> <img src="blah blah" style="blahblah" etc/> Thank you in advance for any suggestions and apologies for the frustratingly trivial question ;0) Lewis Glasgow Caledonian University is a registered Scottish charity, number SC021474 Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en... Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e...
participants (1)
-
McGibbney, Lewis John