<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">
 
  <xsl:import href='../general/global.xsl'/>

  <xsl:output method='text' encoding='utf-8'/>

  <xsl:template name='message'>
  <xsl:param name='to'/>
  <xsl:param name='cc'/>
  <xsl:param name='bcc'/>
  <xsl:param name='subject'/>
  <xsl:param name='content'
/>From: <xsl:value-of select='$config/system-email'/>
To: <xsl:value-of select='$to'/>
<xsl:if test='$cc'>
CC: <xsl:value-of select='$cc'/>
</xsl:if
><xsl:if test='$bcc'>
BCC: <xsl:value-of select='$bcc'/>
</xsl:if>
Subject: [<xsl:value-of select='$site-name'/>] <xsl:value-of select='$subject'/>
<xsl:text>

</xsl:text>
<xsl:value-of select='$content'/>

---

All the details are on the <xsl:value-of select='$site-name'/> site:

<xsl:value-of select='$base-url'/>

(<xsl:value-of select='$site-name-long'/>)
</xsl:template>



</xsl:stylesheet>