count number of <P>s
I'm trying to count the number of <P> tags withing a <![CDATA[ section.
<xsl:value-of select="string-length(.) - string-length(translate(., '<P>', ''))"/>
almost gets me there -- but counts each instance of <, P, and > separately. Is there a way of searching for an *entire* string, rather than individual characters?
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