<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY f  "http://xmlns.4suite.org/ext">
  <!ENTITY fres "http://xmlns.4suite.org/reserved">
]>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:cext="http://xmlns.4suite.org/demos/cards"
  xmlns:exslt="http://exslt.org/common"
  xmlns:exslt-str="http://exslt.org/strings"
  xmlns:f="&f;"
  xmlns:fcore="http://xmlns.4suite.org/4ss/score"
  xmlns:fhttp="http://xmlns.4suite.org/4ss/http"
  xmlns:fres="&fres;"
  xmlns:xupdate="http://www.xmldb.org/xupdate"
  extension-element-prefixes="cext exslt exslt-str f fcore fhttp fres"
  exclude-result-prefixes="xupdate"
>

  <!--

    4Suite repository demo application: Cribbage

    Error processing

    Copyright 2004 Fourthought, Inc. (USA)
    http://4suite.org/

  -->

  <xsl:output method='html'/>

  <xsl:template name='display-error'>
    <xsl:param name='message'/>
    <xsl:param name='uri'/>

    <fcore:rollback/>  <!--always rollback on an error-->

    <html>
    <head>
      <title><xsl:value-of select = "/cribbage/player-info/player[@ID='1']/name"/><xsl:text> vs </xsl:text><xsl:value-of select='/cribbage/player-info/player[@ID="2"]/name'/><xsl:text> in Cribbage</xsl:text></title>
    </head>
    <body bgcolor='green'>
      <H1><xsl:value-of select='$message'/>
      </H1>
      <a href='{$uri}'>Try again</a>
    </body>
  </html>
  </xsl:template>

</xsl:stylesheet>
