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

Anthony Baratta anthony at baratta.com
Mon Jun 5 13:26:20 CDT 2006

Would this work? (this is a complete guess)

            select="count(answer/arquements[q1 = 'a1'] 
            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'>

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.

More information about the thelist mailing list