Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an XML to be displayed with help of XSLT. I need to perform a check on dataset (XML) rows like

Count of rows in datatable where column X value is 2.

I can get rows count by count(dataset/datatable/Rows)
but i need to get count of filtered rows where ColumnX value is 2


Please help

Thanks
Posted
Comments
[no name] 11-Jun-14 11:04am    
What have you tried?
Where are you stuck?
Zubair Alie 11-Jun-14 11:09am    
xsl:value-of select="count(NewDataSet/SCH_PATIENT_PLANS/Rows)"


it returns number of rows (say 20)

I need to get rows where Column1 value is equal to '2'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900