[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] isn´t this expression right pls help
Hello xsl-list,
please excuse this silly question, but I canB4t see the right way: This is my structure where I want to match every <p>-element and where I want to count the characters with whitespace: <broschure cover="false" toc="false"> <head>...</head> <contents> <title>...</title> <test> <section> <h1>...</h1> <p>match this...</p> <kursinfo>...</kursinfo> </section> <section> <h1>...</h1> <p>and this...</p> <kursinfo>...</kursinfo> </section> <section> <h1>...</h1> <p>and this, too!</p> <kursinfo>...</kursinfo> </section> ... </test> </contents> </broschure> I defined a global variable: <xsl:variable name="count_p_s" select="string-length(//section/p)" /> My problem is that I just get the value of the first <p>-element and not an addition of the rest. Thanks for helping me. Andreas
|
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
|