<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/TR/xhtml1/strict">
<!-- $Id: main-redirect.xsl 59 2008-07-18 01:39:01Z frey $ -->
<xsl:output method="xml" 
  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<xsl:variable name="disposition" select="redirect/@disposition"/>
<xsl:choose>
  <xsl:when test="$disposition = 'valid'">
<!-- -->
  <head>
    <title>UDel - Page has Moved</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <xsl:element name="meta">
      <xsl:attribute name="http-equiv">refresh</xsl:attribute>
      <xsl:attribute name="content">10;url=<xsl:value-of select="redirect/new-url"/></xsl:attribute>
    </xsl:element>
    <link rel="stylesheet" type="text/css" href="/main-redirect/main-redirect.css"/>
  </head>
  <body class="test">

<div id="ud-header">
	<div id="ud-header-contain">
		<div id="ud-header-identity">
			<a href="http://www.udel.edu"><img src="https://www.udel.edu/cpa/headers/examples/images/ud-logo-new.png" id="ud-logo" alt="University of Delaware" /></a>
			<img src="https://www.udel.edu/cpa/headers/examples/images/ud-seal-3.png" id="ud-seal" alt="UD Seal" />
		</div>
	</div>
</div>
    <div id="message">
      The page at:
        <div id="oldURL"><xsl:value-of select="redirect/old-url"/></div>
      has moved to
      <div id="newURL"><xsl:value-of select="redirect/new-url"/></div>
      Please update your bookmarks accordingly; you will automatically be redirected to the new page momentarily.  You can also click 
      <xsl:element name="a">
        <xsl:attribute name="href"><xsl:value-of select="redirect/new-url"/></xsl:attribute>
        this link
      </xsl:element>
      to go there directly.
    </div>
    <div id="timingInfo">response time of <xsl:value-of select="redirect/timing"/> <xsl:value-of select="redirect/timing/@unit"/></div>
  </body>
<!-- -->
  </xsl:when>
  <xsl:when test="$disposition = 'dead'">
<!-- -->
  <head>
    <title>UDel - Page Unavailable</title>
    <link rel="stylesheet" type="text/css" href="/main-redirect/main-redirect.css"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  </head>
  <body>
    <div class="masthead3">
      <div class="mastheadbar3">
        <a class="left2" href="http://www.udel.edu/"><img src="http://www.udel.edu/images1/udlogo-smblue.jpg" alt="University of Delaware" width="442" height="64" border="0" align="left"/></a>
      </div>
    </div>
    <div id="message">
      Our apologies!  The page at
      <div id="oldURL"><xsl:value-of select="redirect/old-url"/></div>
      has been permanently removed from this site.
    </div>
    <div id="timingInfo">response time of <xsl:value-of select="redirect/timing"/> <xsl:value-of select="redirect/timing/@unit"/></div>
  </body>
<!-- -->
  </xsl:when>
  <xsl:when test="$disposition = 'error'">
<!-- -->
  <head>
    <title>UDel - Redirect Error</title>
    <link rel="stylesheet" type="text/css" href="/main-redirect/main-redirect.css"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  </head>
  <body>
    <div class="masthead3">
      <div class="mastheadbar3">
        <a class="left2" href="http://www.udel.edu/"><img src="http://www.udel.edu/images1/udlogo-smblue.jpg" alt="University of Delaware" width="442" height="64" border="0" align="left"/></a>
      </div>
    </div>
    <div id="message">
      <xsl:variable name="oldURL" select="redirect/old-url"/>
      <xsl:choose>
        <xsl:when test="$oldURL">
          Oops!  There was an error while trying to redirect your request for
          <div id="oldURL"><xsl:value-of select="$oldURL"/></div>
        </xsl:when>
        <xsl:otherwise>
          Oops!  There was an error while trying to redirect your request.
        </xsl:otherwise>
      </xsl:choose>
      The error reported was:
      <div id="primaryMessage">
        <xsl:value-of select="redirect/error"/>
        <xsl:if test="redirect/verbose-error">
          <div id="verboseMessage"><xsl:value-of select="redirect/verbose-error"/></div>
        </xsl:if>
      </div>
    </div>
  </body>
<!-- -->
  </xsl:when>
</xsl:choose>
</html>
</xsl:template>
</xsl:stylesheet>