[xsl] Unable to use count function because of Namespaces...

Subject: [xsl] Unable to use count function because of Namespaces...
From: "Yaswanth" <yaswanth.mtrx@xxxxxxxxx>
Date: Fri, 7 Sep 2007 17:00:17 +0530
Hi All, 
I am facing a problem for counting ... because of namespaces.

---------------
I have my XML as ...
<?xml version="1.0" encoding="ISO-8859-1"?>
<sb:Signature xmi:version="2.0"
xmlns:cbe="http://www.readiminds.com/schema/cbe";
xmlns:sb="http://www.readiminds.com/infra/readione/workbench/signaturebuilde
r" xmlns:xmi="http://www.omg.org/XMI";>	
<every>
	<every>	
		<event alias="Event1" name="FraudEvent"/>	
	</every>
	<every>	
		<event alias="Event1" name="FraudEvent"/>	
	</every>	
</every>
<every>		
</every>	
</sb:Signature>
----------------

And in my XSL 

I want to count how many every's are there under <sb:Signature>
<xsl:variable name="cevery" select="count(//sb:Signature/every)"/>

This is not working .. It says  prefix should resolve to name space !!

What should be my xsl to find no of EVERY's in sb:Signature..?
<xsl:variable name="cevery" select="count(??????????)"/>
I am expecting output as 2..


Can any one please help on this ? 




Thanks & Regards,
Yaswanth Kumar Ravella

Current Thread