Display XSL

XSL used to display the XML captured from an external XML source. This property also supports the Common Use Variables stated at the beginning of this help topic. Inside of your XSL, you can use the following variables:

      [currentmonthend] – The last day in the current month

      [currentmonthstart] – The first day in the current month

      [currentweekend] – The last day in the current week

      [currentweekstart] – The first day in the current week

      [currentyearend] – The last day in the current year

      [currentyearstart] – The first day in the current year

      [hostname] – The host name of the site where the web part resides (e.g., www.company.com)

      [me] – The currently logged in user

      [meemial] – The currently logged  in user’s email

      [mei] – Includes the ID of the user along with their display name

      [meid] – The currently logged in user’s ID

      [meloginname] – The currently logged in user’s name (domain\user)

      [onemonthagoend] – The last day of last month

      [onemonthagostart] – The first day of last month

      [onemonthfromnowend] – The last day of next month

      [onemonthfromnowstart] – The first day of next month

      [oneweekagoend] – The last day of the previous week

      [oneweekagostart] – The first day of the previous week

      [oneweekfromnowend] – The last day of next week

      [oneweekfromnowstart] – The first day of next week

      [quarter1end] – The last day in the first quarter of the current year

      [quarter1start] – The first day in the first quarter of the current year

      [quarter2end] – The last day in the second quarter of the current year

      [quarter2start] – The first day in the second quarter of the current year

      [quarter3end] – The last day in the third quarter of the current year

      [quarter3start] – The first day in the third quarter of the current year

      [quarter4end] – The last day in the fourth quarter of the current year

      [quarter4start] – The first day in the fourth quarter of the current year

      [sitesecuritytype] – The protocol type of the site where the web part resides (e.g., http://)

      [siteurl] –  The absolute path to the site where the web part resides (e.g., http://www.company.com/sites/site1)

      [today] – Today's date

      [todayrfc] – The current date in RFC format (2010-01-01T14:00:00Z)

      [twoweeksagoend] – The last day of the week before last

      [twoweeksagostart] – The first day of the week before last

      [twoweeksfromnowend] – The last day of the week after next

      [twoweeksfromnowstart] – The first day of the week after next

NOTE 1: The filter functions [SiteTitle] and [SiteURL] functions are no longer supported.

NOTE 2: The date functions listed above look for list items with a date format of month/date/year (e.g., June 15, 2007 stored as 6/15/2007). As a result, it is not recommended that they be used if international date structures are utilized (e.g., June 15, 2007 stored as 15/6/2007).

 

Options:

      "[file]="

Use this option to specify a URL to an XSL Stylesheet Template

Example: [file]=<%SiteURL%>/Connections/TasksXSL.xml

      <xsl:stylesheet>…</xsl:stylesheet>

Use this option to specify the XSL Stylesheet XML directly within the property

Example:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

<table>

<tr>

<xsl:for-each select="NewDataSet/Table1">

          <td>

<xsl:value-of select="Title" />

</td>

</xsl:for-each>

</tr>

</table>

</xsl:template>

</xsl:stylesheet>

Back to Top