<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes" doctype-system="http://busgo1208.us.oracle.com/CTS/XMLassertions/dtd/javadoc_assertions.dtd"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="assertions"> <xsl:copy> <xsl:for-each select="assertion"> <xsl:sort select="substring-after(id,'JAVADOC:')" data-type="number"/> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:copy> </xsl:template> </xsl:stylesheet>