1 2 3 4 5 6 7 8 9 10 11
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <target> <xsl:for-each select="//reg"> <xsl:sort select="@regnum" data-type="number"/> <xsl:copy-of select="."/> </xsl:for-each> </target> </xsl:template> </xsl:stylesheet>