<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="UTF-8" />
  <xsl:template match="/">
    <html>
      <body>
        <xsl:for-each select="document('/cgi-bin/nrand.pl?6+7')/nrand/rand">
          <div>nrand(6): <xsl:value-of select="." /></div>
        </xsl:for-each>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

