[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

isn´t this expression right pls help

Subject: isn´t this expression right pls help
From: Andreas Peter <info@xxxxxxxxxx>
Date: Wed, 27 Jun 2007 11:44:12 +0200
 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.