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

Re: count the number of occurrences of an element whic

Subject: Re: count the number of occurrences of an element which satisfy some condition
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Thu, 21 Jun 2001 03:32:01 -0700
r count occurrences
At 02:59 21-06-2001, Jayaranga Subasinghe wrote:
can any body give me a solution for the following problem?

I want to count the number of occurrences of an element<keyword>,
which 'xml:lang' attribute is 'en'.
the xml file is as follows:
        <KEYWORD xml:lang="en">Keyword 1</KEYWORD>
        <KEYWORD xml:lang="en">Keyword 2</KEYWORD>
        <KEYWORD xml:lang="no">Sokeord 1</KEYWORD>
        <KEYWORD xml:lang="no">Sokeord 2</KEYWORD>
        <KEYWORD xml:lang="no">Sokeord 3</KEYWORD>

Have you tried count(KEYWORD[lang("en")])?


-Chris
--
Christopher R. Maden, XML Consultant
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.