Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

XSL style sheet that sorts UN agencies alphabetically

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:fo="http://www.w3.org/1999/XSL/Format"
        version="1.0">
<xsl:import href="un_basic.xsl"/>
<xsl:template match="Body">
  <fo:block margin-left="0.2in" margin-right="5mm" space-before="6pt">
    <xsl:apply-templates select="Agency">
      <xsl:sort data-type="string" select="./Name"/>
    </xsl:apply-templates>
  </fo:block>
</xsl:template>
</xsl:stylesheet>

Figure 4.17: XSL style sheet that sorts UN agencies alphabetically;