You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sven Waibel <sv...@imbus.de> on 2004/08/30 13:01:35 UTC

Count with conditions

Hello,

i'd like to do a query like this one here

count(something = run && something1 = ok)

How can i do this?

One condition is no simple: count(@activity[.='performed'])
But how can i append the second condition?

Thanks and regards
Sven


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Count with conditions

Posted by Sven Waibel <sv...@imbus.de>.
This could be possible, but i solved it another way.

if test something = run
  if test something1 = ok
    count(.)
  /if
/if

Sven

Chris Pratt wrote:
> How about adding the counts together?  i.e. count(something = run) +
> count(something1 = ok)
>   (*Chris*)
> 
> -----Original Message-----
> From: Sven Waibel [mailto:sven.waibel@imbus.de] 
> Sent: Monday, August 30, 2004 4:02 am
> To: fop-user@xml.apache.org
> Subject: Count with conditions
> 
> Hello,
> 
> i'd like to do a query like this one here
> 
> count(something = run && something1 = ok)
> 
> How can i do this?
> 
> One condition is no simple: count(@activity[.='performed'])
> But how can i append the second condition?
> 
> Thanks and regards
> Sven
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 
> 

-- 
**************************************************************************
* Sven Waibel					imbus AG		 *	
* Tel:     09131/7518-36			Kleinseebacher Str.9	 *
* Fax:     09131/7518-50			91096 Möhrendorf	 *
* EMail:   Sven.Waibel@imbus.de			WWW: http://www.imbus.de *
**************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Count with conditions

Posted by Chris Pratt <ch...@planetpratt.com>.
How about adding the counts together?  i.e. count(something = run) +
count(something1 = ok)
  (*Chris*)

-----Original Message-----
From: Sven Waibel [mailto:sven.waibel@imbus.de] 
Sent: Monday, August 30, 2004 4:02 am
To: fop-user@xml.apache.org
Subject: Count with conditions

Hello,

i'd like to do a query like this one here

count(something = run && something1 = ok)

How can i do this?

One condition is no simple: count(@activity[.='performed'])
But how can i append the second condition?

Thanks and regards
Sven


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org