I am rather new to this. If someone would please help.
I have a list with two columns. Each column is of type URL. one url is the parent the other is a child. I wish to group the CQWP so that it shows the primary link, and then its subordinate links. The header needs to be a link which takes the user to the ordinate page. The sub links lead to the subordinate pages. Here is how far I am thus far.
<xsl:template name="BandHeaderIsLink" match="*[@GroupStyle='BandHeaderIsLink']" mode="header">
<xsl:variable name="SafeLinkUrl">
<xsl:call-template name="OuterTemplate.GetSafeLink">
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="ClientName">
<xsl:call-template name="OuterTemplate.GetGroupName">
<xsl:with-param name="GroupName" select="@*[name()=$Group]"/>
<xsl:with-param name="GroupType" select="$GroupType"/>
</xsl:call-template>
</xsl:variable>
<div class="groupheader item band">
<xsl:choose>
<xsl:when test="$SafeLinkUrl = ''">
<xsl:choose>
<xsl:when test="$ClientName = ''">
No client name and no projects assigned
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ClientName"/> has no projects assigned
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$SafeLinkUrl = 'http://'">
<xsl:choose>
<xsl:when test="$ClientName != ''">
No client name and no projects assigned
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ClientName"/> has no projects assigned
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a href="{$SafeLinkUrl}" target="_self" title="title"><xsl:value-of select="$ClientName"/></a>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
Any help would be highly appreciated.
Thank you.
Godfrey