xsl-list
[Top] [All Lists]

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

2007-09-07 04:31:01
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>