Elements - Example 4


<xsl:for-each
   select="Student/AlternateIdentifiers/AlternateIdentifier[
      (AlternateIDType='IRD number')
     and ( @uow:status != 'expired')
   ] ">
<xsl:sort select="@uow:datestart" order="descending" />
<xsl:if test="position() = 1">
   <xsl:copy-of select="AlternateID" />
</xsl:if>
</xsl:for-each>