﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
	<xsl:import  href="PublicationTemplates.xslt"></xsl:import>
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:variable name="communityXml" select="AjaxRequest/CommunityXML"></xsl:variable>
		<xsl:variable name="VolumeLevel" select="AjaxRequest/VolumeLevel"></xsl:variable>
		<xsl:variable name="userID" select="AjaxRequest/userID"></xsl:variable>
		<xsl:variable name="CommunitiesXML" select="/AjaxRequest/Communities/."></xsl:variable>
		<xsl:variable name="MasterPortalalItemId" select="AjaxRequest/Params/MasterPortalalItemId"></xsl:variable>
		<xsl:variable name="ItemId" select="AjaxRequest/Params/itemID"></xsl:variable>
		<xsl:variable name="Origin" select="AjaxRequest/Origin"></xsl:variable>
		<xsl:variable name="BrandID" select="AjaxRequest/BrandID"></xsl:variable>
		<xsl:variable name="CommunityPermissionID" select="AjaxRequest/CommunityPermissionID"></xsl:variable>
		<xsl:variable name="UserRoles" select="/AjaxRequest/UserRoles/."></xsl:variable>
		
		<xsl:call-template name="CommunityHeader">
			<xsl:with-param name="Community" select="$communityXml/Community"></xsl:with-param>
			<xsl:with-param name="VolumeLevel" select="$VolumeLevel"></xsl:with-param>
			<xsl:with-param name="userID" select="$userID"></xsl:with-param>
			<xsl:with-param name="MasterPortalalItemId" select="$MasterPortalalItemId"></xsl:with-param>
			<xsl:with-param name="ItemId" select="$ItemId"></xsl:with-param>
			<xsl:with-param name="CommunitiesXML" select="$CommunitiesXML"></xsl:with-param>
			<xsl:with-param name="Origin" select="$Origin"></xsl:with-param>
			<xsl:with-param name="BrandID" select="$BrandID"></xsl:with-param>
			<xsl:with-param name="CommunityPermissionID" select="$CommunityPermissionID"></xsl:with-param>
			<xsl:with-param name="UserRoles" select="$UserRoles"></xsl:with-param>
		</xsl:call-template>
	</xsl:template>
</xsl:stylesheet>
