nsdlsandy
asked on
XSLT Transformation
How can I decode this XSLT .. I got it from SharePoint. I need to figure a way to change the styles on this. How can I see the XSLT transformation to see the HTML structure coming out.
<WebPartPages:XsltListView WebPart runat="server" IsIncluded="True" GhostedXslLink="main.xsl" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="News" PageType="PAGE_NORMALVIEW" ListName="{99C9719C-26F7-4 9E2-A3BA-A E7BF872993 7}" Default="FALSE" DisplayName="News" __markuptype="vsattributem arkup" __WebPartId="{2D35C473-8F4 1-4218-988 B-D045653F EB36}" id="g_2d35c473_8f41_4218_9 88b_d04565 3feb36" viewcontenttypeid="0x" __designer:customxsl="fldt ypes_Ratin gs.xsl" showwithsampledata="false" chrometype="None" __AllowXSLTEditing="true" WebPart="true" Height="295" Width="410">
 <XmlDefinition>
  <View Name="{865466D5-E4B2-461A- AC0B-3810B AD88714}" MobileView="TRUE" Type="HTML" DisplayName="All items" Url="/Lists/News/AllItems. aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images /announce. png">
   <Query>
    <OrderBy>
     <FieldRef Name="Modified" Ascending="FALSE"/>
    </OrderBy>
    <GroupBy>
    </GroupBy>
   </Query>
   <ViewFields>
    <FieldRef Name="LinkTitle"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Body"/>
    <FieldRef Name="Title" Explicit="TRUE"/>
   </ViewFields>
   <RowLimit Paged="FALSE">2</RowLimit>
   <Toolbar Type="None" ShowAlways=""/>
   <ViewStyle ID="16"/>
  </View>
 </XmlDefinition>
 <xsl>
  <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="x sl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-m icrosoft-c om:xslt" xmlns:SharePoint="Microsof t.SharePoi nt.WebCont rols" xmlns:ddwrt2="urn:frontpag e:internal " xmlns:o="urn:schemas-micro soft-com:o ffice:offi ce" ddwrt:ghost="show_all">
   <xsl:include href="/_layouts/xsl/main.x sl"/>
   <xsl:include href="/_layouts/xsl/intern al.xsl"/>
   <xsl:param name="AllRows" select="/dsQueryResponse/R ows/Row[$E ntityName = '' or (position() >= $FirstRow and position() <= $LastRow)]"/>
   <xsl:param name="dvt_apos">'</xsl:par am>
   <xsl:template match="View[ViewStyle/@ID= '15' or ViewStyle/@ID='16']" mode="full" ddwrt:ghost="">
    <xsl:variable name="Fields" select="ViewFields/FieldRe f[not(@Exp licit='TRU E')]"/>
    <xsl:variable name="NumColumns" select="count($Fields[not( @Type='Not e' or preceding-sibling::*[@Type ='Note'])] )"/>
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
   </xsl:template>
   <xsl:template name="View_Default_RootTem plate" mode="RootTemplate" match="View" ddwrt:dvt_mode="root" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpag e:internal ">
    <xsl:param name="ShowSelectAllCheckbo x" select="'True'"/>
    <xsl:if test="($IsGhosted = '0' and $MasterVersion=3 and Toolbar[@Type='Standard']) or $ShowAlways">
     <xsl:call-template name="ListViewToolbar"/>
    </xsl:if>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
     <xsl:if test="not($NoCTX)">
      <xsl:call-template name="CTXGeneration"/>
     </xsl:if>
     <xsl:if test="List/@TemplateType=1 09">
      <xsl:call-template name="PicLibScriptGenerati on"/>
     </xsl:if>
     <tr>
      <td>
       <xsl:if test="not($NoAJAX)">
        <iframe src="javascript:false;" id="FilterIframe{$ViewCoun ter}" name="FilterIframe{$ViewCo unter}" style="display:none" height="0" width="0" FilterLink="{$FilterLink}" ></iframe>
       </xsl:if>
       <table summary="{List/@title} {List/@description}" o:WebQuerySourceHref="{$Ht tpPath}&am p;XMLDATA= 1&RowL imit=0& ;View={$Vi ew}" border="0" cellspacing="0" dir="{List/@Direction}">
        <xsl:if test="not($NoCTX)">
         <xsl:attribute name="onmouseover">
          EnsureSelectionHandler(eve nt,this,<x sl:value-o f select ="$ViewCounter"/>)
         </xsl:attribute>
        </xsl:if>
        <xsl:if test="$NoAJAX">
         <xsl:attribute name="FilterLink">
          <xsl:value-of select="$FilterLink"/>
         </xsl:attribute>
        </xsl:if>
        <xsl:attribute name="cellpadding">
         <xsl:choose>
          <xsl:when test="ViewStyle/@ID='15' or ViewStyle/@ID='16'">0</xsl :when>
          <xsl:otherwise>1</xsl:othe rwise>
         </xsl:choose>
        </xsl:attribute>
        <xsl:attribute name="id">
         <xsl:choose>
          <xsl:when test="$IsDocLib or dvt_RowCount = 0">onetidDoclibViewTbl0</x sl:when>
          <xsl:otherwise>
           <xsl:value-of select="concat($List, '-', $View)"/>
          </xsl:otherwise>
         </xsl:choose>
        </xsl:attribute>
        <xsl:attribute name="class">
         <xsl:choose>
          <xsl:when test="ViewStyle/@ID='0' or ViewStyle/@ID='17'">
           <xsl:value-of select="$ViewClassName"/> ms-basictable
          </xsl:when>
          <xsl:otherwise>
           <xsl:value-of select="$ViewClassName"/>
          </xsl:otherwise>
         </xsl:choose>
        </xsl:attribute>
        <xsl:if test="$InlineEdit">
         <xsl:attribute name="inlineedit">
          javascript: <xsl:value-of select="ddwrt:GenFireServe rEvent('__ cancel;dvt _form_key= {@ID}')"/> ;CoreInvok e('ExpGrou pOnPageLoa d', 'true');
         </xsl:attribute>
        </xsl:if>
        <xsl:apply-templates select="." mode="full">
         <xsl:with-param name="ShowSelectAllCheckbo x" select="$ShowSelectAllChec kbox"/>
        </xsl:apply-templates>
       </table>
       <xsl:choose>
        <xsl:when test="$IsDocLib or dvt_RowCount = 0">
         <script type='text/javascript'>Hid eListViewR ows("oneti dDoclibVie wTbl0");</ script>
        </xsl:when>
        <xsl:otherwise>
         <script type='text/javascript'>
          <xsl:value-of select="concat('HideListVi ewRows(&qu ot;', $List, '-', $View, '");')" />
         </script>
        </xsl:otherwise>
       </xsl:choose>
      </td>
     </tr>
     <xsl:if test="$dvt_RowCount = 0 and not (@BaseViewID='3' and List/@TemplateType='102')" >
      <tr>
       <td>
        <table width="100%" border="0" dir="{List/@Direction}">
         <xsl:call-template name="EmptyTemplate" />
        </table>
       </td>
      </tr>
     </xsl:if>
    </table>
    <xsl:call-template name="pagingButtons" />
    <xsl:if test="Toolbar[@Type='Freef orm'] or ($MasterVersion=4 and Toolbar[@Type='Standard']) ">
     <xsl:call-template name="Freeform">
      <xsl:with-param name="AddNewText">
       <xsl:choose>
        <xsl:when test="List/@TemplateType=' 104'">
         <xsl:value-of select="'Add new announcement'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType=' 101' or List/@TemplateType='115'">
         <xsl:value-of select="'Add document'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType=' 103'">
         <xsl:value-of select="'Add new link'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType=' 106'">
         <xsl:value-of select="'Add new event'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType=' 119'">
         <xsl:value-of select="'Add new page'"/>
        </xsl:when>
        <xsl:otherwise>
         <xsl:value-of select="'Add new item'"/>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:with-param>
      <xsl:with-param name="ID">
       <xsl:choose>
        <xsl:when test="List/@TemplateType=' 104'">idHo mePageNewA nnouncemen t</xsl:whe n>
        <xsl:when test="List/@TemplateType=' 101'">idHo mePageNewD ocument</x sl:when>
        <xsl:when test="List/@TemplateType=' 103'">idHo mePageNewL ink</xsl:w hen>
        <xsl:when test="List/@TemplateType=' 106'">idHo mePageNewE vent</xsl: when>
        <xsl:when test="List/@TemplateType=' 119'">idHo mePageNewW ikiPage</x sl:when>
        <xsl:otherwise>idHomePageN ewItem</xs l:otherwis e>
       </xsl:choose>
      </xsl:with-param>
     </xsl:call-template>
    </xsl:if>
   </xsl:template>
   <xsl:template match="/" ddwrt:ghost="hide">
    <xsl:choose>
     <xsl:when test="$RenderCTXOnly='True '">
      <xsl:call-template name="CTXGeneration"/>
     </xsl:when>
     <xsl:when test="($ManualRefresh = 'True')">
      <xsl:call-template name="AjaxWrapper" />
     </xsl:when>
     <xsl:otherwise>
      <xsl:apply-templates mode="RootTemplate" select="$XmlDefinition"/>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template match="View" mode="RenderView" ddwrt:ghost="hide">
    <xsl:variable name="ViewStyleID">
     <xsl:value-of select="ViewStyle/@ID"/>
    </xsl:variable>
    <xsl:variable name="HasExtraColumn" select="$TabularView='1' and $MasterVersion=4 and ($ViewStyleID = '' or $ViewStyleID = '17')"/>
    <xsl:if test="Aggregations[not(@Va lue='Off') ]/FieldRef ">
     <tr>
      <xsl:if test="$HasExtraColumn">
       <td/>
      </xsl:if>
      <xsl:if test="$InlineEdit">
       <td width="1%"/>
      </xsl:if >
      <xsl:apply-templates mode="aggregate" select="ViewFields/FieldRe f[not(@Exp licit='TRU E')]">
       <xsl:with-param name="Rows" select="$AllRows"/>
       <xsl:with-param name="GroupLevel" select="0"/>
      </xsl:apply-templates>
     </tr>
    </xsl:if>
    <xsl:variable name="Fields" select="ViewFields/FieldRe f[not(@Exp licit='TRU E')]"/>
    <xsl:variable name="Groups" select="Query/GroupBy/Fiel dRef"/>
    <xsl:variable name="Collapse" select="Query/GroupBy[@Col lapse='TRU E']"/>
    <xsl:variable name="GroupCount" select="count($Groups)"/>
    <xsl:for-each select="$AllRows">
     <xsl:variable name="thisNode" select="."/>
     <xsl:if test="$GroupCount > 0">
      <xsl:call-template name="GroupTemplate">
       <xsl:with-param name="Groups" select="$Groups"/>
       <xsl:with-param name="Collapse" select="$Collapse"/>
       <xsl:with-param name="HasExtraColumn" select="$HasExtraColumn"/>
      </xsl:call-template>
     </xsl:if>
     <xsl:if test="not(not($NoAJAX) and not($InlineEdit) and $Collapse and $GroupCount > 0)">
      <xsl:apply-templates mode="Item" select=".">
       <xsl:with-param name="Fields" select="$Fields"/>
       <xsl:with-param name="Collapse" select="$Collapse"/>
       <xsl:with-param name="Position" select="position()"/>
       <xsl:with-param name="Last" select="last()"/>
      </xsl:apply-templates>
     </xsl:if>
    </xsl:for-each>
    <xsl:if test="$InlineEdit and not($IsDocLib) and $ListRight_AddListItems = '1'">
     <xsl:call-template name="rowinsert">
      <xsl:with-param name="Fields" select="$Fields"/>
     </xsl:call-template>
    </xsl:if>
   </xsl:template>
   <xsl:template mode="Item" match="Row[../../@ViewStyl eID='15' or ../../@ViewStyleID='16']" ddwrt:ghost="hide">
    <xsl:param name="Fields" select="."/>
    <xsl:param name="Collapse" select="."/>
    <xsl:param name="Position" select="1"/>
    <xsl:param name="Last" select="1"/>
    <xsl:variable name="NumColumns" select="count($Fields[not( @Type='Not e' or preceding-sibling::*[@Type ='Note'])] )"/>
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="../../@ViewStyleID=' 15'">
     <tr>
      <td class="ms-newsletterline" colspan="{$NumColumns}">
       <img src="/_layouts/images/blan k.gif" width="100%" height="4" alt="" />
      </td>
     </tr>
    </xsl:if>
    <tr>
     <xsl:if test="../../@ViewStyleID=' 16' and $Position mod 2 = 1">
      <xsl:attribute name="class">ms-alternatin g ms-newsletteralt</xsl:attr ibute>
     </xsl:if>
     <xsl:for-each select="$Fields[position() <= $NumColumns]">
      <xsl:apply-templates select="." mode="printTableCellEcbAll owed">
       <xsl:with-param name="thisNode" select="$thisNode"/>
      </xsl:apply-templates>
     </xsl:for-each>
    </tr>
    <xsl:for-each select="$Fields[position() > $NumColumns]">
     <tr>
      <xsl:if test="$thisNode/../../@Vie wStyleID=' 16' and $Position mod 2 = 1">
       <xsl:attribute name="class">ms-alternatin g ms-newsletteralt</xsl:attr ibute>
      </xsl:if>
      <td class = "ms-vb-tall" colspan="{$NumColumns}">
       <xsl:if test="not(@Type='Note')">
        <xsl:value-of select="@DisplayName"/>:
       </xsl:if>
       <xsl:choose>
        <xsl:when test="@Type='User'">
         <xsl:value-of select="$thisNode/@*[name( )=concat(c urrent()/@ Name, '.span')]" disable-output-escaping="y es"/>
        </xsl:when>
        <xsl:otherwise>
         <xsl:apply-templates select="." mode="PrintFieldWithDispla yFormLink" >
          <xsl:with-param name="thisNode" select="$thisNode"/>
         </xsl:apply-templates>
        </xsl:otherwise>
       </xsl:choose>
      </td>
     </tr>
    </xsl:for-each>
    <xsl:if test="$NumColumns < count($Fields)">
     <tr>
      <xsl:if test="../../@ViewStyleID=' 16' and $Position mod 2 = 1">
       <xsl:attribute name="class">ms-alternatin g ms-newsletteralt</xsl:attr ibute>
      </xsl:if>
      <td colspan="{$NumColumns}">
       <img src="/_layouts/images/blan k.gif" width="100%" height="4" alt="" />
      </td>
     </tr>
    </xsl:if>
   </xsl:template>
   <xsl:template name="FieldRef_printTableC ell_EcbAll owed.LinkT itle" match="FieldRef[@Name='Lin kTitle']" mode="printTableCellEcbAll owed" ddwrt:dvt_mode="body" ddwrt:ghost="show">
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at tribute>
      <xsl:attribute name="onmouseover">OnChild Item(this) </xsl:attr ibute>
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template match="FieldRef[@Name='Lin kTitle']" name="LinkTitleNoMenu.Link Title" mode="Computed_LinkTitle_b ody" ddwrt:tag="a" ddwrt:dvt_mode="body" ddwrt:ghost="show">
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="ShowAccessibleIcon" select="0"/>
    <xsl:param name="folderUrlAdditionalQ ueryString " select="''"/>
    <xsl:variable name="ID">
     <xsl:call-template name="ResolveId">
      <xsl:with-param name="thisNode" select ="$thisNode"/>
     </xsl:call-template>
    </xsl:variable>
    <xsl:choose>
     <xsl:when test="$thisNode/@FSObjType ='1'">
      <xsl:call-template name="LinkFilenameNoMenu">
       <xsl:with-param name="thisNode" select="$thisNode"/>
       <xsl:with-param name="folderUrlAdditionalQ ueryString " select="$folderUrlAddition alQueryStr ing"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
      <xsl:choose>
       <xsl:when test="$XmlDefinition/List/ @TemplateT ype != 301">
        <a onfocus="OnLink(this)" href="{$FORM_DISPLAY}& ID={$ID}&a mp;Content TypeID={$t hisNode/@C ontentType Id}" onclick="EditLink2(this,{$ ViewCounte r});return false;" target="_self">
         <xsl:call-template name="LinkTitleValue.LinkT itle">
          <xsl:with-param name="thisNode" select="$thisNode"/>
          <xsl:with-param name="ShowAccessibleIcon" select="$ShowAccessibleIco n"/>
         </xsl:call-template>
        </a>
       </xsl:when>
       <xsl:otherwise>
        <a onfocus="OnLink(this)" href="{$FORM_DISPLAY}& ID={$ID}" onclick="GoToLink(this);re turn false;" target="_self">
         <xsl:call-template name="LinkTitleValue.LinkT itle">
          <xsl:with-param name="thisNode" select="$thisNode"/>
          <xsl:with-param name="ShowAccessibleIcon" select="$ShowAccessibleIco n"/>
         </xsl:call-template>
        </a>
       </xsl:otherwise>
      </xsl:choose>
      <xsl:if test="$thisNode/@Created_x 0020_Date. ifnew='1'" >
       <xsl:call-template name="NewGif.LinkTitle">
        <xsl:with-param name="thisNode" select="$thisNode"/>
       </xsl:call-template>
      </xsl:if>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template name="LinkTitleValue.LinkT itle" ddwrt:dvt_mode="body" ddwrt:ghost="show">
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="ShowAccessibleIcon" select="0"/>
    <xsl:variable name="titlevalue" select="$thisNode/@Title"/ >
    <xsl:choose>
     <xsl:when test="$titlevalue=''">
      <xsl:value-of select="'(no title)'"/>
     </xsl:when>
     <xsl:otherwise>
      <xsl:choose>
       <xsl:when test="$HasTitleField">
        <xsl:value-of disable-output-escaping="y es" select="$titlevalue" />
       </xsl:when>
       <xsl:otherwise>
        <xsl:value-of select="$titlevalue" />
       </xsl:otherwise>
      </xsl:choose>
     </xsl:otherwise>
    </xsl:choose>
    <xsl:choose>
     <xsl:when test="$ShowAccessibleIcon" >
      <img src="/_layouts/images/blan k.gif" class="ms-hidden" border="0" width="1" height="1" alt="{$idPresEnabled}" />
     </xsl:when>
     <xsl:otherwise></xsl:other wise>
    </xsl:choose>
   </xsl:template>
   <xsl:template name="NewGif.LinkTitle" ddwrt:dvt_mode="body" ddwrt:ghost="show">
    <xsl:param name="thisNode" select="."/>
    <img src="/_layouts/{$LCID}/ima ges/new.gi f" alt="{$NewGifAltString}" title="{$NewGifAltString}" class="ms-newgif" />
   </xsl:template>
   <xsl:template name="FieldRef_printTableC ell_EcbAll owed.Modif ied" match="FieldRef[@Name='Mod ified']" mode="printTableCellEcbAll owed" ddwrt:dvt_mode="body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at tribute>
      <xsl:attribute name="onmouseover">OnChild Item(this) </xsl:attr ibute>
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template name="FieldRef_DateTime_bo dy.Modifie d" ddwrt:dvt_mode="body" match ="FieldRef[@Name='Modified ']" mode="DateTime_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:choose>
     <xsl:when test="$FreeForm">
      <xsl:call-template name="FieldRef_ValueOf.Mod ified">
       <xsl:with-param name="thisNode" select="$thisNode"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
      <nobr>
       <xsl:call-template name="FieldRef_ValueOf.Mod ified">
        <xsl:with-param name="thisNode" select="$thisNode"/>
       </xsl:call-template>
      </nobr>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template name="FieldRef_ValueOf.Mod ified" ddwrt:dvt_mode="body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:value-of select="$thisNode/@*[name( )=current( )/@Name]"/ >
   </xsl:template>
   <xsl:template name="FieldRef_printTableC ell_EcbAll owed.Edito r" match="FieldRef[@Name='Edi tor']" mode="printTableCellEcbAll owed" ddwrt:dvt_mode="body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at tribute>
      <xsl:attribute name="onmouseover">OnChild Item(this) </xsl:attr ibute>
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template name="FieldRef_User_body.E ditor" ddwrt:dvt_mode="body" match="FieldRef[@Name='Edi tor']" mode="User_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:value-of disable-output-escaping="y es" select="$thisNode/@*[name( )=current( )/@Name]" />
   </xsl:template>
   <xsl:template name="FieldRef_Note_body.B ody" ddwrt:dvt_mode="body" match="FieldRef[@Name='Bod y']" mode="Note_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <div dir="{@Direction}" class="ms-rtestate-field">
     <xsl:value-of select="$thisNode/@*[name( )=current( )/@Name]" disable-output-escaping="y es"/>
    </div>
   </xsl:template>
   <xsl:template match="View" mode="footer" ddwrt:ghost="hide">
   </xsl:template>
   <xsl:template name="pagingButtons" ddwrt:ghost="hide">
    <xsl:choose>
     <xsl:when test="$XmlDefinition/List/ @TemplateT ype = 106 and $XmlDefinition/@Recurrence Rowset='TR UE'">
      <xsl:if test="$dvt_nextpagedata or $dvt_prevpagedata">
       <xsl:call-template name="CalendarExpandedRecu rrenceFoot er"/>
      </xsl:if>
     </xsl:when>
     <xsl:otherwise>
      <xsl:if test="$XmlDefinition/RowLi mit[@Paged ='TRUE']">
       <xsl:call-template name="CommandFooter">
        <xsl:with-param name="FirstRow" select="$FirstRow" />
        <xsl:with-param name="LastRow" select="$LastRow" />
        <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
       </xsl:call-template>
      </xsl:if>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
  </xsl:stylesheet>
 </xsl>
 <parameterbindings>
  <ParameterBinding Name="dvt_sortdir" Location="Postback;Connect ion"/>
  <ParameterBinding Name="dvt_sortfield" Location="Postback;Connect ion"/>
  <ParameterBinding Name="dvt_firstrow" Location="Postback;Connect ion"/>
  <ParameterBinding Name="OpenMenuKeyAccessibl e" Location="Resource(wss,Ope nMenuKeyAc cessible)" />
  <ParameterBinding Name="open_menu" Location="Resource(wss,ope n_menu)"/>
  <ParameterBinding Name="select_deselect_all" Location="Resource(wss,sel ect_desele ct_all)"/>
  <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idP resEnabled )"/>
  <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noX inviewofY_ LIST)"/>
  <ParameterBinding Name="NoAnnouncementsHowTo " Location="Resource(core,no XinviewofY _DEFAULT)" />
  <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,add newitem)"/ >
  <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,mor eItemsPare n)"/>
 </parameterbindings>
</WebPartPages:XsltListVie wWebPart>
<WebPartPages:XsltListView
 <XmlDefinition>
  <View Name="{865466D5-E4B2-461A-
   <Query>
    <OrderBy>
     <FieldRef Name="Modified" Ascending="FALSE"/>
    </OrderBy>
    <GroupBy>
    </GroupBy>
   </Query>
   <ViewFields>
    <FieldRef Name="LinkTitle"/>
    <FieldRef Name="Modified"/>
    <FieldRef Name="Editor"/>
    <FieldRef Name="Body"/>
    <FieldRef Name="Title" Explicit="TRUE"/>
   </ViewFields>
   <RowLimit Paged="FALSE">2</RowLimit>
   <Toolbar Type="None" ShowAlways=""/>
   <ViewStyle ID="16"/>
  </View>
 </XmlDefinition>
 <xsl>
  <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="x
   <xsl:include href="/_layouts/xsl/main.x
   <xsl:include href="/_layouts/xsl/intern
   <xsl:param name="AllRows" select="/dsQueryResponse/R
   <xsl:param name="dvt_apos">'</xsl:par
   <xsl:template match="View[ViewStyle/@ID=
    <xsl:variable name="Fields" select="ViewFields/FieldRe
    <xsl:variable name="NumColumns" select="count($Fields[not(
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
   </xsl:template>
   <xsl:template name="View_Default_RootTem
    <xsl:param name="ShowSelectAllCheckbo
    <xsl:if test="($IsGhosted = '0' and $MasterVersion=3 and Toolbar[@Type='Standard'])
     <xsl:call-template name="ListViewToolbar"/>
    </xsl:if>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
     <xsl:if test="not($NoCTX)">
      <xsl:call-template name="CTXGeneration"/>
     </xsl:if>
     <xsl:if test="List/@TemplateType=1
      <xsl:call-template name="PicLibScriptGenerati
     </xsl:if>
     <tr>
      <td>
       <xsl:if test="not($NoAJAX)">
        <iframe src="javascript:false;" id="FilterIframe{$ViewCoun
       </xsl:if>
       <table summary="{List/@title} {List/@description}" o:WebQuerySourceHref="{$Ht
        <xsl:if test="not($NoCTX)">
         <xsl:attribute name="onmouseover">
          EnsureSelectionHandler(eve
         </xsl:attribute>
        </xsl:if>
        <xsl:if test="$NoAJAX">
         <xsl:attribute name="FilterLink">
          <xsl:value-of select="$FilterLink"/>
         </xsl:attribute>
        </xsl:if>
        <xsl:attribute name="cellpadding">
         <xsl:choose>
          <xsl:when test="ViewStyle/@ID='15' or ViewStyle/@ID='16'">0</xsl
          <xsl:otherwise>1</xsl:othe
         </xsl:choose>
        </xsl:attribute>
        <xsl:attribute name="id">
         <xsl:choose>
          <xsl:when test="$IsDocLib or dvt_RowCount = 0">onetidDoclibViewTbl0</x
          <xsl:otherwise>
           <xsl:value-of select="concat($List, '-', $View)"/>
          </xsl:otherwise>
         </xsl:choose>
        </xsl:attribute>
        <xsl:attribute name="class">
         <xsl:choose>
          <xsl:when test="ViewStyle/@ID='0' or ViewStyle/@ID='17'">
           <xsl:value-of select="$ViewClassName"/> ms-basictable
          </xsl:when>
          <xsl:otherwise>
           <xsl:value-of select="$ViewClassName"/>
          </xsl:otherwise>
         </xsl:choose>
        </xsl:attribute>
        <xsl:if test="$InlineEdit">
         <xsl:attribute name="inlineedit">
          javascript: <xsl:value-of select="ddwrt:GenFireServe
         </xsl:attribute>
        </xsl:if>
        <xsl:apply-templates select="." mode="full">
         <xsl:with-param name="ShowSelectAllCheckbo
        </xsl:apply-templates>
       </table>
       <xsl:choose>
        <xsl:when test="$IsDocLib or dvt_RowCount = 0">
         <script type='text/javascript'>Hid
        </xsl:when>
        <xsl:otherwise>
         <script type='text/javascript'>
          <xsl:value-of select="concat('HideListVi
         </script>
        </xsl:otherwise>
       </xsl:choose>
      </td>
     </tr>
     <xsl:if test="$dvt_RowCount = 0 and not (@BaseViewID='3' and List/@TemplateType='102')"
      <tr>
       <td>
        <table width="100%" border="0" dir="{List/@Direction}">
         <xsl:call-template name="EmptyTemplate" />
        </table>
       </td>
      </tr>
     </xsl:if>
    </table>
    <xsl:call-template name="pagingButtons" />
    <xsl:if test="Toolbar[@Type='Freef
     <xsl:call-template name="Freeform">
      <xsl:with-param name="AddNewText">
       <xsl:choose>
        <xsl:when test="List/@TemplateType='
         <xsl:value-of select="'Add new announcement'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType='
         <xsl:value-of select="'Add document'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType='
         <xsl:value-of select="'Add new link'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType='
         <xsl:value-of select="'Add new event'"/>
        </xsl:when>
        <xsl:when test="List/@TemplateType='
         <xsl:value-of select="'Add new page'"/>
        </xsl:when>
        <xsl:otherwise>
         <xsl:value-of select="'Add new item'"/>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:with-param>
      <xsl:with-param name="ID">
       <xsl:choose>
        <xsl:when test="List/@TemplateType='
        <xsl:when test="List/@TemplateType='
        <xsl:when test="List/@TemplateType='
        <xsl:when test="List/@TemplateType='
        <xsl:when test="List/@TemplateType='
        <xsl:otherwise>idHomePageN
       </xsl:choose>
      </xsl:with-param>
     </xsl:call-template>
    </xsl:if>
   </xsl:template>
   <xsl:template match="/" ddwrt:ghost="hide">
    <xsl:choose>
     <xsl:when test="$RenderCTXOnly='True
      <xsl:call-template name="CTXGeneration"/>
     </xsl:when>
     <xsl:when test="($ManualRefresh = 'True')">
      <xsl:call-template name="AjaxWrapper" />
     </xsl:when>
     <xsl:otherwise>
      <xsl:apply-templates mode="RootTemplate" select="$XmlDefinition"/>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template match="View" mode="RenderView" ddwrt:ghost="hide">
    <xsl:variable name="ViewStyleID">
     <xsl:value-of select="ViewStyle/@ID"/>
    </xsl:variable>
    <xsl:variable name="HasExtraColumn" select="$TabularView='1' and $MasterVersion=4 and ($ViewStyleID = '' or $ViewStyleID = '17')"/>
    <xsl:if test="Aggregations[not(@Va
     <tr>
      <xsl:if test="$HasExtraColumn">
       <td/>
      </xsl:if>
      <xsl:if test="$InlineEdit">
       <td width="1%"/>
      </xsl:if >
      <xsl:apply-templates mode="aggregate" select="ViewFields/FieldRe
       <xsl:with-param name="Rows" select="$AllRows"/>
       <xsl:with-param name="GroupLevel" select="0"/>
      </xsl:apply-templates>
     </tr>
    </xsl:if>
    <xsl:variable name="Fields" select="ViewFields/FieldRe
    <xsl:variable name="Groups" select="Query/GroupBy/Fiel
    <xsl:variable name="Collapse" select="Query/GroupBy[@Col
    <xsl:variable name="GroupCount" select="count($Groups)"/>
    <xsl:for-each select="$AllRows">
     <xsl:variable name="thisNode" select="."/>
     <xsl:if test="$GroupCount > 0">
      <xsl:call-template name="GroupTemplate">
       <xsl:with-param name="Groups" select="$Groups"/>
       <xsl:with-param name="Collapse" select="$Collapse"/>
       <xsl:with-param name="HasExtraColumn" select="$HasExtraColumn"/>
      </xsl:call-template>
     </xsl:if>
     <xsl:if test="not(not($NoAJAX) and not($InlineEdit) and $Collapse and $GroupCount > 0)">
      <xsl:apply-templates mode="Item" select=".">
       <xsl:with-param name="Fields" select="$Fields"/>
       <xsl:with-param name="Collapse" select="$Collapse"/>
       <xsl:with-param name="Position" select="position()"/>
       <xsl:with-param name="Last" select="last()"/>
      </xsl:apply-templates>
     </xsl:if>
    </xsl:for-each>
    <xsl:if test="$InlineEdit and not($IsDocLib) and $ListRight_AddListItems = '1'">
     <xsl:call-template name="rowinsert">
      <xsl:with-param name="Fields" select="$Fields"/>
     </xsl:call-template>
    </xsl:if>
   </xsl:template>
   <xsl:template mode="Item" match="Row[../../@ViewStyl
    <xsl:param name="Fields" select="."/>
    <xsl:param name="Collapse" select="."/>
    <xsl:param name="Position" select="1"/>
    <xsl:param name="Last" select="1"/>
    <xsl:variable name="NumColumns" select="count($Fields[not(
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="../../@ViewStyleID='
     <tr>
      <td class="ms-newsletterline" colspan="{$NumColumns}">
       <img src="/_layouts/images/blan
      </td>
     </tr>
    </xsl:if>
    <tr>
     <xsl:if test="../../@ViewStyleID='
      <xsl:attribute name="class">ms-alternatin
     </xsl:if>
     <xsl:for-each select="$Fields[position()
      <xsl:apply-templates select="." mode="printTableCellEcbAll
       <xsl:with-param name="thisNode" select="$thisNode"/>
      </xsl:apply-templates>
     </xsl:for-each>
    </tr>
    <xsl:for-each select="$Fields[position()
     <tr>
      <xsl:if test="$thisNode/../../@Vie
       <xsl:attribute name="class">ms-alternatin
      </xsl:if>
      <td class = "ms-vb-tall" colspan="{$NumColumns}">
       <xsl:if test="not(@Type='Note')">
        <xsl:value-of select="@DisplayName"/>:
       </xsl:if>
       <xsl:choose>
        <xsl:when test="@Type='User'">
         <xsl:value-of select="$thisNode/@*[name(
        </xsl:when>
        <xsl:otherwise>
         <xsl:apply-templates select="." mode="PrintFieldWithDispla
          <xsl:with-param name="thisNode" select="$thisNode"/>
         </xsl:apply-templates>
        </xsl:otherwise>
       </xsl:choose>
      </td>
     </tr>
    </xsl:for-each>
    <xsl:if test="$NumColumns < count($Fields)">
     <tr>
      <xsl:if test="../../@ViewStyleID='
       <xsl:attribute name="class">ms-alternatin
      </xsl:if>
      <td colspan="{$NumColumns}">
       <img src="/_layouts/images/blan
      </td>
     </tr>
    </xsl:if>
   </xsl:template>
   <xsl:template name="FieldRef_printTableC
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at
      <xsl:attribute name="onmouseover">OnChild
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template match="FieldRef[@Name='Lin
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="ShowAccessibleIcon" select="0"/>
    <xsl:param name="folderUrlAdditionalQ
    <xsl:variable name="ID">
     <xsl:call-template name="ResolveId">
      <xsl:with-param name="thisNode" select ="$thisNode"/>
     </xsl:call-template>
    </xsl:variable>
    <xsl:choose>
     <xsl:when test="$thisNode/@FSObjType
      <xsl:call-template name="LinkFilenameNoMenu">
       <xsl:with-param name="thisNode" select="$thisNode"/>
       <xsl:with-param name="folderUrlAdditionalQ
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
      <xsl:choose>
       <xsl:when test="$XmlDefinition/List/
        <a onfocus="OnLink(this)" href="{$FORM_DISPLAY}&
         <xsl:call-template name="LinkTitleValue.LinkT
          <xsl:with-param name="thisNode" select="$thisNode"/>
          <xsl:with-param name="ShowAccessibleIcon" select="$ShowAccessibleIco
         </xsl:call-template>
        </a>
       </xsl:when>
       <xsl:otherwise>
        <a onfocus="OnLink(this)" href="{$FORM_DISPLAY}&
         <xsl:call-template name="LinkTitleValue.LinkT
          <xsl:with-param name="thisNode" select="$thisNode"/>
          <xsl:with-param name="ShowAccessibleIcon" select="$ShowAccessibleIco
         </xsl:call-template>
        </a>
       </xsl:otherwise>
      </xsl:choose>
      <xsl:if test="$thisNode/@Created_x
       <xsl:call-template name="NewGif.LinkTitle">
        <xsl:with-param name="thisNode" select="$thisNode"/>
       </xsl:call-template>
      </xsl:if>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template name="LinkTitleValue.LinkT
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="ShowAccessibleIcon" select="0"/>
    <xsl:variable name="titlevalue" select="$thisNode/@Title"/
    <xsl:choose>
     <xsl:when test="$titlevalue=''">
      <xsl:value-of select="'(no title)'"/>
     </xsl:when>
     <xsl:otherwise>
      <xsl:choose>
       <xsl:when test="$HasTitleField">
        <xsl:value-of disable-output-escaping="y
       </xsl:when>
       <xsl:otherwise>
        <xsl:value-of select="$titlevalue" />
       </xsl:otherwise>
      </xsl:choose>
     </xsl:otherwise>
    </xsl:choose>
    <xsl:choose>
     <xsl:when test="$ShowAccessibleIcon"
      <img src="/_layouts/images/blan
     </xsl:when>
     <xsl:otherwise></xsl:other
    </xsl:choose>
   </xsl:template>
   <xsl:template name="NewGif.LinkTitle" ddwrt:dvt_mode="body" ddwrt:ghost="show">
    <xsl:param name="thisNode" select="."/>
    <img src="/_layouts/{$LCID}/ima
   </xsl:template>
   <xsl:template name="FieldRef_printTableC
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at
      <xsl:attribute name="onmouseover">OnChild
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template name="FieldRef_DateTime_bo
    <xsl:param name="thisNode" select="."/>
    <xsl:choose>
     <xsl:when test="$FreeForm">
      <xsl:call-template name="FieldRef_ValueOf.Mod
       <xsl:with-param name="thisNode" select="$thisNode"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
      <nobr>
       <xsl:call-template name="FieldRef_ValueOf.Mod
        <xsl:with-param name="thisNode" select="$thisNode"/>
       </xsl:call-template>
      </nobr>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
   <xsl:template name="FieldRef_ValueOf.Mod
    <xsl:param name="thisNode" select="."/>
    <xsl:value-of select="$thisNode/@*[name(
   </xsl:template>
   <xsl:template name="FieldRef_printTableC
    <xsl:param name="thisNode" select="."/>
    <xsl:param name="class" />
    <td>
     <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
      <xsl:attribute name="height">100%</xsl:at
      <xsl:attribute name="onmouseover">OnChild
     </xsl:if>
     <xsl:attribute name="class">
      <xsl:call-template name="getTDClassValue">
       <xsl:with-param name="class" select="$class" />
       <xsl:with-param name="Type" select="@Type"/>
       <xsl:with-param name="ClassInfo" select="@ClassInfo"/>
      </xsl:call-template>
     </xsl:attribute>
     <xsl:apply-templates select="." mode="PrintFieldWithECB">
      <xsl:with-param name="thisNode" select="$thisNode"/>
     </xsl:apply-templates>
    </td>
   </xsl:template>
   <xsl:template name="FieldRef_User_body.E
    <xsl:param name="thisNode" select="."/>
    <xsl:value-of disable-output-escaping="y
   </xsl:template>
   <xsl:template name="FieldRef_Note_body.B
    <xsl:param name="thisNode" select="."/>
    <div dir="{@Direction}" class="ms-rtestate-field">
     <xsl:value-of select="$thisNode/@*[name(
    </div>
   </xsl:template>
   <xsl:template match="View" mode="footer" ddwrt:ghost="hide">
   </xsl:template>
   <xsl:template name="pagingButtons" ddwrt:ghost="hide">
    <xsl:choose>
     <xsl:when test="$XmlDefinition/List/
      <xsl:if test="$dvt_nextpagedata or $dvt_prevpagedata">
       <xsl:call-template name="CalendarExpandedRecu
      </xsl:if>
     </xsl:when>
     <xsl:otherwise>
      <xsl:if test="$XmlDefinition/RowLi
       <xsl:call-template name="CommandFooter">
        <xsl:with-param name="FirstRow" select="$FirstRow" />
        <xsl:with-param name="LastRow" select="$LastRow" />
        <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
       </xsl:call-template>
      </xsl:if>
     </xsl:otherwise>
    </xsl:choose>
   </xsl:template>
  </xsl:stylesheet>
 </xsl>
 <parameterbindings>
  <ParameterBinding Name="dvt_sortdir" Location="Postback;Connect
  <ParameterBinding Name="dvt_sortfield" Location="Postback;Connect
  <ParameterBinding Name="dvt_firstrow" Location="Postback;Connect
  <ParameterBinding Name="OpenMenuKeyAccessibl
  <ParameterBinding Name="open_menu" Location="Resource(wss,ope
  <ParameterBinding Name="select_deselect_all"
  <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idP
  <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noX
  <ParameterBinding Name="NoAnnouncementsHowTo
  <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,add
  <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,mor
 </parameterbindings>
</WebPartPages:XsltListVie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER