<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
   Name:  Unorder.xsl
   Author:  James W. Allor
   Date:  20051129
   Description:  Unorders the elements in a MIF

   Modification History:
      Initials   Date      Change Req. ID    Description
      JWA       20051129    N/A               Initial Version 
-->


<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>


<xsl:template match="MIF">

  <xsl:element name="MIF">
    <xsl:attribute name="profile_type">
      <xsl:value-of select="@profile_type"/>
    </xsl:attribute>

  	<xsl:call-template name="SortByValue"/>

    </xsl:element>

</xsl:template>


<xsl:template name="SortByValue">

  <!-- This will remove comments and blank lines. -->
  <xsl:for-each select="*">
    <xsl:sort order="descending"/>
    <xsl:copy-of select="."/>
  </xsl:for-each>

</xsl:template>


</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition></MapperMetaTag>
</metaInformation>
-->
