This transformation:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="title[contains(., '/')]">
<h2>
<xsl:value-of select="substring-before(., '/')"/>
</h2>
<p>
<xsl:value-of select="substring-after(., '/')"/>
</p>
</xsl:template>
<xsl:template match="title">
<h2><xsl:value-of select="."/></h2>
</xsl:template>
</xsl:stylesheet>
when applied on the provided XML document:
<product>
<title>The Maze / Jane Evans</title>
</product>
produces the wanted result:
<h2>The Maze </h2>
<p> Jane Evans</p>
Do note that no explicit conditional code is used -- the XSLT processor does this work itself.