Microsoft Knowledge Base Email Alertz

Issue with blogs on MySite, with Office SharePoint Server English and Language Packs

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 971192 - Last Review: May 11, 2009 - Revision: 1.0

Issue with blogs on MySite, with Office SharePoint Server English and Language Packs

Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom



The "Private" and "Public" view URL for blog is different in an installation of SharePoint with English and additional language packs. For example, with English as the base install language and German Language Pack added, the URL’s are as follows :

Mysite (Private): link behind "Willkommen im Blog!" is http://ServerName/personal/administrator/Blog/Lists/Beitraege/Post.aspx?ID=1 (http://ServerName/personal/administrator/Blog/Lists/Beitraege/Post.aspx?ID=1)

Mysite (Profile): link behind "Willkommen im Blog!" is http://ServerName/personal/administrator/Blog/Lists/Posts/Post.aspx?ID=1 (http://ServerName/personal/administrator/Blog/Lists/Posts/Post.aspx?ID=1)

Cause

The difference is the name of the List within the MySite which does not get correctly set and is linked to the blog.xsl which assists in the transformation from one language to other.

Resolution



To resolve this issue there is the need to make changes to the BLOG.XSL. The BLOG.XSL is normally located in <Drive:>\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATES\Site Templates\SPSMSITEHOST folder.

Rename the existing blog.xsl located at <Drive:>\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATES\Site Templates\SPSMSITEHOST.

Create a new blog.xsl with the following content:

<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="d xsl msxsl ddwrt xmlns x __designer WebControls asp ddwrt2" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">

<xsl:output method="html" indent="no"/>

<xsl:param name="dvt_apos">'</xsl:param>

<xsl:param name="filterParam"></xsl:param>

<xsl:param name="webUrl"></xsl:param>

<xsl:param name="emptyText"></xsl:param>

<xsl:param name="LocaleID">1033</xsl:param>

<xsl:variable name="dvt_1_automode">0</xsl:variable>

<xsl:template match="http://support.microsoft.com">

   <xsl:call-template name="dvt_1"/>

</xsl:template>

<xsl:template name="dvt_1" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">

   <xsl:param name="ParentPath" />

   <xsl:variable name="dvt_StyleName">Commas</xsl:variable>

   <xsl:variable name="Rows" select="http://support.microsoft.com/dsQueryResponse/NewDataSet/Row" />

   <xsl:variable name="RowCount" select="count($Rows)"/>

   <xsl:variable name="IsEmpty" select="$RowCount = 0"/>

   <xsl:choose>

      <xsl:when test="$IsEmpty">

         <xsl:call-template name="dvt_1.empty"/>

      </xsl:when>

      <xsl:otherwise>

         <xsl:call-template name="dvt_1.body">

            <xsl:with-param name="ParentPath" select="$ParentPath" />

            <xsl:with-param name="Rows" select="$Rows" />

         </xsl:call-template>

      </xsl:otherwise>

   </xsl:choose>

</xsl:template>

<xsl:template name="dvt_1.empty" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">

   <xsl:value-of select="$emptyText"/>

</xsl:template>

<xsl:template name="dvt_1.body" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">

   <xsl:param name="ParentPath" />

   <xsl:param name="Rows" />

   <xsl:for-each select="$Rows">

      <xsl:variable name="SrcPos">

         <xsl:number />

      </xsl:variable>

      <xsl:call-template name="dvt_1.rowview">

         <xsl:with-param name="ParentPath" select="$ParentPath" />

         <xsl:with-param name="SrcPos" select="$SrcPos" />

      </xsl:call-template>

   </xsl:for-each>

</xsl:template>

<xsl:template name="dvt_1.rowview" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">

   <xsl:param name="ParentPath" />

   <xsl:param name="SrcPos" />

   <xsl:variable name="blogPath">

       <xsl:call-template name="getblogpath">

           <xsl:with-param name="encodedPath" select="@EncodedAbsUrl" />

       </xsl:call-template>

   </xsl:variable>

   <h3 class="ms-PostDate">

      <xsl:value-of select="ddwrt:FormatDateTime(string(@PublishedDate),number($LocaleID), 'MMMM dd, yyyy')" />

   </h3>

   <div class="ms-PostTitle">

      <a style="color: #295AC6;">

         <xsl:attribute name="href"><xsl:value-of select="$blogPath"/>Post.aspx?ID=<xsl:value-of select="@ID"/></xsl:attribute><xsl:value-of select="@Title" />

      </a>

   </div>

   <div class="ms-PostBody">

      <xsl:value-of select="@Body" disable-output-escaping="yes" />

   </div>

   <div class="ms-PostFooter">

      $Resources:core,blog_postfooter_postby; <xsl:value-of select="@Author" disable-output-escaping="yes" /> $Resources:core,blog_postfooter_at; <xsl:value-of select="ddwrt:FormatDate(string(@PublishedDate),number($LocaleID), 5)" />

      <xsl:if test="normalize-space(@PostCategory) != ''"> | Category: <a><xsl:attribute name="href"><xsl:value-of select="$webUrl" disable-output-escaping="yes" />$Resources:core,lists_Folder;/$Resources:core,blogcatagories_Folder;/Category.aspx?Name=<xsl:value-of select="@PostCategory"/></xsl:attribute><xsl:value-of select="@PostCategory" /></a></xsl:if> |

      <a><xsl:attribute name="href"><xsl:value-of select="$blogPath"/>Post.aspx?ID=<xsl:value-of select="@ID"/></xsl:attribute>$Resources:core,blog_postfooter_permalink;</a> |

      <a><xsl:attribute name="href"><xsl:value-of select="$blogPath"/>Post.aspx?ID=<xsl:value-of select="@ID"/>#Comments</xsl:attribute>$Resources:core,comments_schema_blg_title;(<xsl:value-of select="@NumCommentsWithLink" />)</a>

   </div>

</xsl:template>

<xsl:template name="getblogpath" 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-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">

   <xsl:param name="encodedPath"/>

   <xsl:choose>

      <xsl:when test="contains($encodedPath, '/')">              

          <xsl:value-of select="substring-before($encodedPath, '/')"/>/<xsl:call-template name="getblogpath"><xsl:with-param name="encodedPath" select="substring-after($encodedPath, '/')" /></xsl:call-template>

      </xsl:when>

     <xsl:otherwise>             

     </xsl:otherwise>

   </xsl:choose>

</xsl:template>

</xsl:stylesheet>

 

Note: The text in Bold indicates changed information. The text in Bold Italics indicate additional data/lines.

More Information

The file blog.xsl can get overwritten during an update.

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

APPLIES TO
  • Microsoft Office SharePoint Server 2007
Keywords: 
kbrapidpub kbnomt KB971192
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Faggot40 - link Report As Irrelevant  
Written: 10/22/2009 4:05 PM
I am preparing for my 2nd interview later in the afternoon and this site really helped me a lot! ,