I need to omit the duplicate values when displayin
Hello,
The below is my XML code
<course_cat>
<course>
<Day>Thursday, September 25 </Day>
<Time>8:30-10:00 AM</Time>
<Title>VM100 Fine-Needle Aspiration of the Salivary </Title>
</course>
<course>
<Day>Thursday, September 25 </Day>
<Time>8:30-10:00 AM</Time>
<Title>VM101 Tactics for Tackling Common </Title>
</course>
<course>
<Day>Friday, September 26</Day>
<Time>8:30-10:00 AM</Time>
<Title>VM107 Standardization and Troubleshooting </Title>
</course>
<course_cat>
The below is my XSL code:
<xsl:for-each select="course_cat/course">
<tr><xsl:value-of select="Day"/></tr><br/>
<tr><xsl:value-of select="Time"/></tr><br/>
<tr> <xsl:value-of Title"/></tr>
</xsl:for-each>
Here the Time is same for all of the course I just want to display once if the time is same.
But with my code I am displaying the time repetatively.
This is my output:
Thursday, September 25
8:30-10:00 AM
VM100 Fine-Needle Aspiration of the Salivary Gland:William C.Faquin,
Thursday, September 25
8:30-10:00 AM
VM101 Tactics for Tackling Common Pathology
Friday, September 26
8:30-10:00 AM
VM107 Standardization and Troubleshooting
But I want the output to display like this:
Thursday, September 25
8:30-10:00 AM
VM100 Fine-Needle Aspiration of the Salivary Gland:William C.Faquin,
VM101 Tactics for Tackling Common Pathology
Friday, September 26
8:30-10:00 AM
VM107 Standardization and Troubleshooting
|