<WebPartPages:DataViewWebPart webpart="true" runat="server" __WebPartId="{4587D743-B2CB-4534-B328-D4668722D22E}"><WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:dvwp="http://schemas.microsoft.com/WebPart/v2/DataView">
<dvwp:XSL><![CDATA[
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl ddwrt msxsl" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:output method="html" indent="no"/>
<xsl:param name="dvt_adhocmode"></xsl:param>
<xsl:param name="dvt_adhocfiltermode">xsl</xsl:param>
<xsl:param name="dvt_fieldsort"></xsl:param>
<xsl:param name="dvt_sortfield"></xsl:param>
<xsl:param name="dvt_groupfield"></xsl:param>
<xsl:param name="dvt_groupdisplay">Ü/xsl:param>
<xsl:param name="dvt_sortdir"></xsl:param>
<xsl:param name="dvt_groupdir"></xsl:param>
<xsl:param name="dvt_grouptype"></xsl:param>
<xsl:param name="dvt_sorttype">text</xsl:param>
<xsl:param name="dvt_groupsorttype">text</xsl:param>
<xsl:param name="dvt_filterfield"></xsl:param>
<xsl:param name="dvt_filterval"></xsl:param>
<xsl:param name="dvt_filtertype"></xsl:param>
<xsl:param name="dvt_firstrow">1</xsl:param>
<xsl:param name="dvt_nextpagedata">Ü/xsl:param>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:param name="filterParam"></xsl:param>
<xsl:template match="/">
<xsl:call-template name="dvt_1"/>
</xsl:template>
<xsl:template name="dvt_1">
<xsl:variable name="StyleName">Table</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
<xsl:variable name="RowCount" select="count($Rows)"/>
<xsl:variable name="IsEmpty" select="$RowCount = 0"/>
<xsl:choose>
<xsl:when test="$IsEmpty">
_u32 ? <xsl:call-template name="dvt_1.empty"/>
</xsl:when>
<xsl:otherwise>
<!-- Create the link to the pull down menu -->
<div class="ms-HoverCellInActive" onmouseover="this.className='ms-HoverCellActive'" onmouseout="this.className='ms-HoverCellInActive'">
<table>
<tr>
<td class="ms-vb" align="right">
<a id="MSO_GoMenuLink" title="Go Menu" style="CURSOR: hand" onclick="MSOWebPartPage_OpenMenu(MSO_GoMenu, this);" tabindex="0">
Go to: <img alt="Go to" src="/_layouts/images/menudark.gif" align="absBottom"/>
</a>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
// Initialize the JavaScript variable that will
// store the menu contents
var strMenu = "";
strMenu = "<menu id='MSO_GoMenu' class='ms-SrvMenuUI'>";
</script>
<!-- Call the template to render the body -->
<xsl:call-template name="dvt_1.body">
<xsl:with-param name="Rows" select="$Rows"/>
<xsl:with-param name="FirstRow" select="1"/>
<xsl:with-param name="LastRow" select="$RowCount"/>
</xsl:call-template>
<!-- Create a layer to host the menu conents on the page -->
<Div id="goMenuLayer"></Div>
<script type="text/javascript">
// Close the Menu Xml tag
strMenu += "</menu>";
// Replace all escaped angle braces
var lt = "<a></a>";
var gt = "<a></a>";
lt = lt.substr(0,1);
gt = gt.substr(2,1);
strMenu = strMenu.replace('<',lt);
strMenu = strMenu.replace('>',gt);
// Write the menu contents onto the layer
var x = document.getElementById("goMenuLayer");
x.outerHTML = strMenu;
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="dvt_1.body">
<xsl:param name="Rows"/>
<xsl:param name="FirstRow"/>
<xsl:param name="LastRow"/>
<xsl:for-each select="$Rows">
<xsl:variable name="NewGroup_0"><xsl:choose><xsl:when test="not ($dvt_groupfield)"><xsl:value-of select="ddwrt:NameChanged(string(@Category), 0)"/></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose></xsl:variable>
<xsl:choose>
<xsl:when test="0"/>
<xsl:when test="not($dvt_groupfield) and (not($NewGroup_0='') and position() >= $FirstRow and position() <= $LastRow or ($FirstRow = position()))">
<xsl:if test="not ((position()=1) or (position()=$FirstRow))">
<xsl:call-template name="dvt_1.groupfooter0">
<xsl:with-param name="fieldtitle">Category</xsl:with-param>
<xsl:with-param name="fieldname">Category</xsl:with-param>
<xsl:with-param name="fieldvalue"><xsl:choose>
<xsl:when test="$NewGroup_0=''"><xsl:value-of select="@Category"/></xsl:when><xsl:otherwise><xsl:value-of select="$NewGroup_0"/></xsl:otherwise></xsl:choose></xsl:with-param>
<xsl:with-param name="fieldtype" select="'text'"/>
<xsl:with-param name="nodeset" select="$Rows"/>
<xsl:with-param name="groupid" select="'0'"/>
<xsl:with-param name="displaystyle" select="'auto'"/>
</xsl:call-template>
</xsl:if>
<xsl:call-template name="dvt_1.groupheader0">
<xsl:with-param name="fieldtitle">Category</xsl:with-param>
<xsl:with-param name="fieldname">Category</xsl:with-param>
<xsl:with-param name="fieldvalue"><xsl:choose>
<xsl:when test="not (@Category)"><xsl:value-of select="' '"/></xsl:when><xsl:otherwise><xsl:value-of select="@Category"/></xsl:otherwise></xsl:choose></xsl:with-param>
<xsl:with-param name="fieldtype" select="'text'"/>
<xsl:with-param name="nodeset" select="$Rows"/>
<xsl:with-param name="groupid" select="'0'"/>
<xsl:with-param name="displaystyle" select="'auto'"/>
<xsl:with-param name="imagesrc" select="'/_layouts/images/minus.gif'"/>
<xsl:with-param name="alttext" select="'collapse'"/>
<xsl:with-param name="altname" select="'expand'"/>
<xsl:with-param name="hidedetail" select="false()"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
<xsl:variable name="BreakOut"><xsl:choose><xsl:when test="not($dvt_groupfield) and position()=$LastRow+1"><xsl:value-of select="ddwrt:NameChanged('', -1)"/></xsl:when><xsl:otherwise>BreakOut</xsl:otherwise></xsl:choose></xsl:variable>
<xsl:variable name="KeepItemsTogether" select="false()"/>
<xsl:variable name="HideGroupDetail" select="false()"/>
<xsl:variable name="GroupStyle" select="'auto'"/>
<xsl:if test="(position() >= $FirstRow and position() <= $LastRow) or $KeepItemsTogether">
<xsl:if test="not($HideGroupDetail)" ddwrt:cf_ignore="1">
<script type="text/javascript">
// Append the Menu item tag to the menuContents String
var title = '<xsl:value-of select="@Title"/>';
var url = '<xsl:value-of select="@Url"/>';
var icon = '<xsl:value-of select="@Icon"></xsl:value-of>';
strMenu += '<ie:menuitem title="'+ title +'" onMenuClick="window.location.href=\''+ url +'\'" iconSrc="' + icon + '" >' + title + '</ie:menuitem>';
</script>
</xsl:if>
</xsl:if>
<xsl:choose>
<xsl:when test="0"/>
<xsl:when test="($NewGroup_0 or true()) and not($dvt_groupfield)">
<xsl:if test="(position() = count($Rows) and ($LastRow=position() or $KeepItemsTogether)) or (not($KeepItemsTogether) and position() > $LastRow and not($BreakOut='BreakOut')) or (not($KeepItemsTogether) and position() = $LastRow+1) or (position()=last() and $LastRow > last())">
<xsl:call-template name="dvt_1.groupfooter0">
<xsl:with-param name="fieldtitle">Category</xsl:with-param>
<xsl:with-param name="fieldname">Category</xsl:with-param>
<xsl:with-param name="fieldvalue"><xsl:choose>
<xsl:when test="position() = count($Rows) and ($LastRow >= position() or $KeepItemsTogether) or not($NewGroup_0)"><xsl:value-of select="@Category"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$NewGroup_0"/></xsl:otherwise></xsl:choose></xsl:with-param>
<xsl:with-param name="fieldtype" select="'text'"/>
<xsl:with-param name="nodeset" select="$Rows"/>
<xsl:with-param name="groupid" select="'0'"/>
<xsl:with-param name="displaystyle" select="'auto'"/>
</xsl:call-template>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
<xsl:template name="dvt_1.empty">
<xsl:variable name="ViewEmptyText">There are no items to show in this view.</xsl:variable>
<table border="0" width="100%">
<tr>
<td class="ms-vb">
<xsl:value-of select="$ViewEmptyText"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="dvt_1.groupheader0">
<xsl:param name="fieldtitle"/>
<xsl:param name="fieldname"/>
<xsl:param name="fieldvalue"/>
<xsl:param name="fieldtype"/>
<xsl:param name="nodeset"/>
<xsl:param name="groupid"/>
<xsl:param name="displaystyle"/>
<xsl:param name="imagesrc"/>
<xsl:param name="alttext"/>
<xsl:param name="altname"/>
<xsl:param name="hidedetail"/>
<script type="text/javascript">
// Write the tag to form a submenu in the menu contents
var title = '<xsl:value-of select="$fieldvalue"/>';
var icon = '<xsl:value-of select="@Icon"/>';
strMenu += '<ie:menuitem title="Test" type="submenu" ><ie:menuitem type="label" >'+ title +'</ie:menuitem>'
</script>
</xsl:template>
<xsl:template name="dvt_1.groupfooter0">
<xsl:param name="fieldtitle"/>
<xsl:param name="fieldname"/>
<xsl:param name="fieldvalue"/>
<xsl:param name="fieldtype"/>
<xsl:param name="nodeset"/>
<xsl:param name="groupid"/>
<xsl:param name="displaystyle"/>
<script type="text/javascript">
strMenu += '</ie:menuitem>';
</script>
</xsl:template>
</xsl:stylesheet>
]]></dvwp:XSL>
<dvwp:DataQuery><![CDATA[
<udc:ConnectionInfo xmlns:udc="http://schemas.microsoft.com/data/udc" Purpose="Query" UDCVersion="1.0" SOAPVersion="1.0">
<udcs:Location xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" href="http://ServerName/sites/SiteName/_vti_bin/DspSts.asmx">STSDataAdapter</udcs:Location>
<udcs:SOAPAction xmlns:udcs="http://schemas.microsoft.com/data/udc/soap">http://schemas.microsoft.com/sharepoint/dsp/queryRequest</udcs:SOAPAction>
<soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<dsp:queryRequest xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp">
<dsp:dsQuery resultContent="dataOnly" columnMapping="attribute" resultRoot="Rows" resultRow="Row" select="/list[@id='{List GUID}']">
<dsp:Query>
<dsp:Fields>
<dsp:AllFields/>
</dsp:Fields>
<dsp:OrderBy>
<dsp:OrderField Name="Category" Type="xsd:string" Direction="ASC"/>
</dsp:OrderBy>
</dsp:Query>
</dsp:dsQuery>
</dsp:queryRequest>
</soap:Body>
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<dsp:versions xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp">
<dsp:version>1.0</dsp:version>
</dsp:versions>
<dsp:request xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" document="content" method="query"/>
</soap:Header>
</udc:ConnectionInfo>]]></dvwp:DataQuery>
<Title>vb</Title>
<dvwp:NoDefaultStyle>TRUE</dvwp:NoDefaultStyle>
<dvwp:ListName>{List GUID}</dvwp:ListName>
<dvwp:Default>FALSE</dvwp:Default>
<dvwp:DisplayName>vb</dvwp:DisplayName>
<dvwp:ViewFlag>0</dvwp:ViewFlag>
<dvwp:ParamBindings><![CDATA[
<ParameterBindings xmlns="http://schemas.microsoft.com/office/fpddw">
<ParameterBinding Name="dvt_adhocmode" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_adhocfiltermode" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_fieldsort" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_groupfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_groupdisplay" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_groupdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_grouptype" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sorttype" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_groupsorttype" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_filterfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_filterval" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_filtertype" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
<ParameterBinding Name="filterParam" Location="Postback;Connection"/>
<ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
<ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
</ParameterBindings>]]></dvwp:ParamBindings>
<PartOrder>1</PartOrder>
<dvwp:DataFields>@ID,ID;@Title,Title;@Modified,Modified;@Created,Created;@Author,Created By;@Editor,Modified By;@Attachments,Attachments;@Url,Url;@Category,Category;@Icon,Icon;</dvwp:DataFields>
</WebPart></WebPartPages:DataViewWebPart>