[thelist] [SPAM] xsl count (these only)

Juha Katila wallpasser at gmail.com
Tue Jun 6 01:27:58 CDT 2006


Yeah, I've tried it, but it only gives zero value (0).. :(

-juha-

On 6/5/06, Anthony Baratta <anthony at baratta.com> wrote:
> Would this work? (this is a complete guess)
>
> <xsl:value-of
>            select="count(answer/arquements[q1 = 'a1']
>            AND
>            answer/basicinfo[courseid = 'foodcourse'])"/>
>
>
> If you have the opportunity you might want to re-think how you format your XML data so you can get the answers out that you want.
>
> e.g. making courseid an attribute of answer, so that you can filter for this attribute easier.
>
> <answer courseid='mathcourse'>
>  <arquements>
>   <q1>a4</q1>
>   <q2>a3</a2>
>   <q3>a1</q3>
>  </arquements>
> </answer>
>
> Or use an XSL transformation to re-jigger the XML into a more qurey friendly format. Then run your query against the newly formatted data.
>
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list