I mentioned before that the SP 2010 CQWP automatically creates the available slots by parsing your .xsl and creating a slot for all the @Variables it comes across. When you dig into the item style though you may notice the presence of several @Variables in the out of the box templates that get no slot, such as @OpenInNewWindow
<a href=”{$SafeLinkUrl}” title=”{@LinkToolTip}”>
<xsl:if test=”$ItemsHaveStreams = ‘True’”>
<xsl:attribute name=”onclick”>
<xsl:value-of select=”@OnClickForWebRendering”/>
</xsl:attribute>
</xsl:if>
<xsl:if test=”$ItemsHaveStreams != ‘True’ and @OpenInNewWindow = ‘True’”>
<xsl:attribute name=”onclick”>
<xsl:value-of disable-output-escaping=”yes” select=”$OnClickTargetAttribute”/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select=”$DisplayTitle”/>
</a>
If you scroll all the way down in ItemStyle.xsl, you’ll find the hidden template that does this:
<xsl:template name=”HiddenSlots” match=”Row[@Style='HiddenSlots']” mode=”itemstyle”>
<div class=”SipAddress”>
<xsl:value-of select=”@SipAddress” />
</div>
<div class=”LinkToolTip”>
<xsl:value-of select=”@LinkToolTip” />
</div>
<div class=”OpenInNewWindow”>
<xsl:value-of select=”@OpenInNewWindow” />
</div>
<div class=”OnClickForWebRendering”>
<xsl:value-of select=”@OnClickForWebRendering” />
</div>
</xsl:template>
If you find that you want to make these available in your slots, which can be handy for LinkToolTip or OpenInNewWindow, you can simply remove them from the HiddenSlots template.










