![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL Sort [Thread Next] Re: XSL SortTo: NULL Date: 6/19/2008 3:56:00 PM
Martin Honnen wrote:
> Assuming "null" value means that the Name attribute is not present you
> can use
> <xsl:apply-templates select="Company">
> <xsl:sort select="(@Name | @Sortname)[1]"/>
> </xsl:apply-templates>
Slight correction:
<xsl:apply-templates select="Company">
<xsl:sort select="(@Name | @Sortname[not(../@Name)])[1]"/>
</xsl:apply-templates>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
