Create a named template to output the header with a parameter
<xsl:template name"header">
<xsl:param name="title"/>
<head>
<title><xsl:value-of select="$title"/></title>
</head>
</xsl:template>
Then invoke it as
<xsl:call-template name="header">
<xsl:with-param name="title" select="'Lord of the Rings'"/>
</xsl:call-template>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference