<?xml version="1.0" encoding="iso8859-1"?>

<!--

  XSLT script to format SPARQL Query Results XML Format as xhtml

  Copyright © 2004 World Wide Web Consortium, (Massachusetts
  Institute of Technology, European Research Consortium for
  Informatics and Mathematics, Keio University). All Rights
  Reserved. This work is distributed under the W3C® Software
  License [1] in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.

  [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231

-->

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:res="http://www.w3.org/2001/sw/DataAccess/rf1/result2"
  exclude-result-prefixes="res xsl">

  <xsl:template match="/">
<html>
  <head>
    <title>name-mbox output</title>
  </head>
  <body><xsl:text>
</xsl:text>
    <xsl:apply-templates select="//res:result"/>
  </body>
</html>
  </xsl:template>

  <xsl:template match="res:result">
    <p><xsl:value-of select="res:binding[@name='name']/res:literal/text()"/>'s
email address is 
<xsl:value-of select="res:binding[@name='mbox']/res:uri/text()"/>.</p><xsl:text>
</xsl:text>
  </xsl:template>
</xsl:stylesheet>

