<!-- Try to find the main link - one that has an href pointing to html and with type alternate -->
<xsl:variable name="mainLink" select="atom03:link[(@rel = 'alternate' or @rel = '' or not(@rel)) and (@type = 'text/html' or @type = '' or not(@type))]" />
<!-- Try to find the main link - one that has an href pointing to html and with type alternate -->
<xsl:variable name="mainLink" select="atom03:link[(@rel = 'alternate' or @rel = '' or not(@rel)) and (@type = 'text/html' or @type = '' or not(@type))]" />