XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
The problem is, <xsl:sort data-type="number" select="@SortOrder"/> provides the following output:
5555555
1111111
2222222
3333333
4444444
Is there a way to Sort so that if the attribute doesn't exist, that value is pushed to the bottom? I know its possible if the last result looked like <Result Code="5555555" SortOrder="">, but I have no control over input data.