3,241
社区成员




09/05/2015 09:56:30.30 w3wp.exe (0x28B8) 0x083C SharePoint Foundation Web Parts 89a1 High Error while executing web part: System.NullReferenceException: 未将对象引用设置到对象的实例。 在 System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes) 在 Microsoft.Xslt.STransform.GetCompiledTransform() 在 Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver) 在 Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform() 在 Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 3da23878-f5e9-4762-bb76-2208e54f608e
<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="xsl 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-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office">
<xsl:include href="/_layouts/xsl/main.xsl"/>
<xsl:include href="/_layouts/xsl/internal.xsl"/>
<xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() >= $FirstRow and position() <= $LastRow)]"/>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:template name="FieldRef_header._x5c97__x4f4d__x804c__x52a1_" ddwrt:dvt_mode="header" match="FieldRef[@Name='_x5c97__x4f4d__x804c__x52a1_']" mode="header" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
<th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)" style="width: 143px">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="(@Type='User' or @Type='UserMulti') and ($PresenceEnabled='1')">ms-vh</xsl:when>
<xsl:otherwise>ms-vh2</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="dvt_headerfield._x5c97__x4f4d__x804c__x52a1_">
<xsl:with-param name="fieldname">
<xsl:value-of select="@Name"/>
</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="@DisplayName"/>
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="@DisplayName"/>
</xsl:with-param>
<xsl:with-param name="fieldtype">
<xsl:choose>
<xsl:when test="@Type='Number' or @Type='Currency'">number</xsl:when>
<xsl:otherwise>x:string</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</th>
</xsl:template></xsl:stylesheet></xsl>
<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="xsl 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-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office">
<xsl:include href="/_layouts/xsl/main.xsl"/>
<xsl:include href="/_layouts/xsl/internal.xsl"/>
<xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() >= $FirstRow and position() <= $LastRow)]"/>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:template name="FieldRef_header._x5c97__x4f4d__x804c__x52a1_" ddwrt:dvt_mode="header" match="FieldRef[@Name='_x5c97__x4f4d__x804c__x52a1_']" mode="header" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
<th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)" style="width: 143px">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="(@Type='User' or @Type='UserMulti') and ($PresenceEnabled='1')">ms-vh</xsl:when>
<xsl:otherwise>ms-vh2</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="dvt_headerfield._x5c97__x4f4d__x804c__x52a1_">
<xsl:with-param name="fieldname">
<xsl:value-of select="@Name"/>
</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="@DisplayName"/>
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="@DisplayName"/>
</xsl:with-param>
<xsl:with-param name="fieldtype">
<xsl:choose>
<xsl:when test="@Type='Number' or @Type='Currency'">number</xsl:when>
<xsl:otherwise>x:string</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</th>
</xsl:template></xsl:stylesheet></xsl>