Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL Sort >Thread Next - Re: XSL Sort Re: XSL SortTo: NULL Date: 6/19/2008 9:02:00 PM On Jun 19, 6:56=A0pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> Martin Honnen wrote:
> > Assuming "null" value means that the Name attribute is not present you
> > can use
> > =A0 <xsl:apply-templates select=3D"Company">
> > =A0 =A0 <xsl:sort select=3D"(@Name | @Sortname)[1]"/>
> > =A0 </xsl:apply-templates>
>
> Slight correction:
>
> =A0 =A0<xsl:apply-templates select=3D"Company">
> =A0 =A0 =A0<xsl:sort select=3D"(@Name | @Sortname[not(../@Name)])[1]"/>
> =A0 =A0</xsl:apply-templates>
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen --- MVP XML
> =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/
Thanks
<xsl:apply-templates select=3D"Company">
<xsl:sort select=3D"(@Name | @Sortname[not(../@Name)])[1]"/>
</xsl:apply-templates>
Its working fine.
Can u explain this concept <xsl:sort select=3D"(@SortName | @Name[not(../
@SortName)])[1]"/>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
