After define HTML links for each columns, we need to change the old XSL template to show links in the pages. We can use "href" HTML tag to show it, change the XSL template file as following.
<xsl:choose>
<xsl:when test="@href">
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:value-of select="." /></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="." />
</xsl:otherwise>
</xsl:choose>
Or else, use the "onClick" mouse event, use java scripts to open the links, which enable you control some properties of the new window. Change the XSL template file as following.
<xsl:choose>
<xsl:when test="@href">
<a href="#myanchor">
<xsl:attribute name="onClick">
javascripts:window.open("<xsl:value-of select="@href" />"); return true;
</xsl:attribute>
<xsl:value-of select="." /></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="." />
</xsl:otherwise>
</xsl:choose>
For XML technology, I just know something about this, write a note on blog for future remind.
