﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:include href="SelectedGoalTitle.xslt"/>
    
    <xsl:template match="/">
        <xsl:variable name ="TemplatePathURL" select="normalize-space(AjaxRequest/TemplateURL)"/>
        <xsl:variable name="ItemID" select="normalize-space(AjaxRequest/Params/ItemID)"/>
        <xsl:variable name="ItemName" select="normalize-space(AjaxRequest/Params/ItemName)"/>
        <xsl:variable name="PermissionID" select="normalize-space(AjaxRequest/Params/PermissionID)"/>
        <xsl:variable name="ParentName" select="normalize-space(AjaxRequest/Params/ParentName)"/>
        <xsl:variable name="IsFollowingGoal" select="normalize-space(AjaxRequest/Params/IsFollowingGoal)"/>
        <xsl:variable name="IsCoach" select="normalize-space(AjaxRequest/Params/IsCoach)"/>

        <xsl:call-template name="SelectedGoalTitle">
            <xsl:with-param name="TemplatePathURL" select="$TemplatePathURL"/>
            <xsl:with-param name="ItemID" select="$ItemID"/>
            <xsl:with-param name="ItemName" select="$ItemName"/>
            <xsl:with-param name="PermissionID" select="$PermissionID"/>
            <xsl:with-param name="ParentName" select="$ParentName"/>
            <xsl:with-param name="IsFollowingGoal" select="$IsFollowingGoal" />
            <xsl:with-param name="IsCoach" select="$IsCoach" />
            <xsl:with-param name="Origin">DiscussionPage</xsl:with-param>
        </xsl:call-template>
        
        
    </xsl:template>
</xsl:stylesheet>
