Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] =?utf-8?b?aXNuwrR0?= this expression right pls help


Subject: [xsl] isn´t this expression right pls help
From: Andreas Peter <info@xxxxxxxxxx>
Date: Wed, 27 Jun 2007 11:44:12 +0200

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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor