![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Is this the best way to operate on a specific data item? Is this the best way to operate on a specific data item?To: NULL Date: 8/20/2008 6:22:00 AM I have an XML file containing news items, each of which has a date
associated with it. I want to display only the news item with the most
recent date.
This is the approach I'm using:
<xsl:for-each select="//newsItem">
<xsl:sort select="date" order="descending"/>
<xsl:if test="position() = 1">
...
</xsl:if>
</xsl:for-each>
Is there a more sophisticated solution?
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
