Advertisement
Guest User

XSLT Overdue SP 2010 - not working

a guest
Sep 4th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <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">
  2. <xsl:include href="/_layouts/xsl/main.xsl" />
  3. <xsl:include href="/_layouts/xsl/internal.xsl" />
  4. <xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() &gt;= $FirstRow and position() &lt;= $LastRow)]" />
  5. <xsl:param name="dvt_apos">'</xsl:param>
  6. <xsl:param name="Today">CurrentDate</xsl:param>
  7. <xsl:template name="FieldRef_printTableCell_EcbAllowed.Due_x0020_Date0" match="FieldRef[@Name='Due_x0020_Date0']" mode="printTableCellEcbAllowed" ddwrt:dvt_mode="body" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
  8. <xsl:param name="thisNode" select="." />
  9. <xsl:param name="class" />
  10. <td>
  11. <xsl:attribute name="style">
  12. <xsl:if test="ddwrt:DateTimeTick(ddwrt:GenDisplayName(string($thisNode/@Due_x0020_Date0))) &gt; ddwrt:DateTimeTick(ddwrt:GenDisplayName(string($Today)))" ddwrt:cf_explicit="1">
  13. background-color: #FF0000;
  14. </xsl:if>
  15. </xsl:attribute>
  16. <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
  17. <xsl:attribute name="height">100%</xsl:attribute>
  18. <xsl:attribute name="onmouseover">OnChildItem(this)</xsl:attribute>
  19. </xsl:if>
  20. <xsl:attribute name="class">
  21. <xsl:call-template name="getTDClassValue">
  22. <xsl:with-param name="class" select="$class" />
  23. <xsl:with-param name="Type" select="@Type" />
  24. <xsl:with-param name="ClassInfo" select="@ClassInfo" />
  25. </xsl:call-template>
  26. </xsl:attribute>
  27. <xsl:apply-templates select="." mode="PrintFieldWithECB">
  28. <xsl:with-param name="thisNode" select="$thisNode" />
  29. </xsl:apply-templates>
  30. </td>
  31. </xsl:template>
  32. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement