0

HI guys,

I want to count the journals that classification is computing and published after 2000

this is my xml structure

<journal>
		<title classification= "computing">Approaching digital equity: is wifi the new leveler &</title>
		<authors>
			<author>
				<surname>Middleton</surname>
				<firstname>Karen L.</firstname>
			</author>
			<author>
				<surname>Chambers</surname>
				<firstname>Valrie</firstname>
			</author>
		</authors>
		<journalName>Information Technology & People</journalName>
		<volume>Vol. 23</volume>
		<issue>No. 1</issue>
		<year>2010</year>
		<page>4-22</page>
	</journal>

and what i did in xsl is

<xsl:value-of select = "count(journals/journal/title[@classification='computing' and year > 2000])" />

There is no error but the output is zero instead of 5.
Can someone point out what's wrong with my code?

Thanks in advanced.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by fpmurphy
0
<xsl:template match="/">
     <xsl:value-of select="count(//title[@classification='computing' and following-sibling::year &gt; 2000] )" />
 </xsl:template>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.