Hi,
I am very new to XSL and am in desperate need of some help
Part of what I need to do is to get a COUNT DISTINCT on my XML file. (I have attached a chunk of the XML below). I know that this could be done in the stored procedure that is querying the tables but that is a really complicated query and I dont want to fiddle with it.
I want a new variable created in my XSLT which will return the count distinct of the different CGPC variations of the CSCI (SCE_DPTC, computer science) records. For example in this XML file i would like the return count to be 3 as there are 3 seperate and distinct SCE_CGPC's.
This is a chunk of the XML file
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='PGRE' '
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='PGRE'
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='PGTM'
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='PGTM'
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='PGTM'
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='UGID'
<z:row SCE_DPTC='CSCI' DPT_NAME='Computer Science (Physical Sciences School)' SCE_CGPC='UGID'
Any help would be greatly appreciated,
Many thanks,
Chris Cash