101 lines
3.8 KiB
HTML
101 lines
3.8 KiB
HTML
<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">
|
|
|
|
<xsl:output method="html" indent="no"/>
|
|
<xsl:decimal-format NaN=""/>
|
|
<xsl:param name="dvt_apos">'</xsl:param>
|
|
<xsl:param name="ListID">{0efea85d-b2f4-4d8d-9cb3-306cb081715d}</xsl:param>
|
|
<xsl:param name="WebURL">/resp1</xsl:param>
|
|
<xsl:param name="ItemID">1</xsl:param>
|
|
<xsl:variable name="dvt_1_automode">0</xsl:variable>
|
|
|
|
<xsl:template match="/"
|
|
xmlns:x="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
|
|
xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
|
|
xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
|
|
xmlns:SharePoint="Microsoft.SharePoint.WebControls">
|
|
<xsl:call-template name="dvt_1"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="dvt_1">
|
|
<xsl:variable name="dvt_StyleName">RepForm1</xsl:variable>
|
|
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
|
|
<xsl:call-template name="dvt_1.body">
|
|
<xsl:with-param name="Rows" select="$Rows" />
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="dvt_1.body">
|
|
<xsl:param name="Rows" />
|
|
<xsl:for-each select="$Rows">
|
|
<xsl:call-template name="dvt_1.rowview" />
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="dvt_1.rowview">
|
|
<div class="newsItem">
|
|
<div class="itemTitle">
|
|
<h1>
|
|
<xsl:value-of select="@Title" />
|
|
</h1>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-1 col-md-1">
|
|
<a class="back" href="javascript:history.back(-1)">Palaa</a>
|
|
</div>
|
|
<div class="col-lg-11 col-md-11">
|
|
<div class="itemBody">
|
|
<xsl:value-of select="@Body" disable-output-escaping="yes" />
|
|
<br />
|
|
</div>
|
|
<div class="itemData">
|
|
<div>
|
|
<div>
|
|
<span class="hdr">Viesti vanhenee: </span>
|
|
<span class="date">
|
|
<xsl:value-of select="ddwrt:FormatDate(string(@Expires) ,1035 ,1)" />
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<span class="hdr">Dokumentin luoja: </span>
|
|
<span class="people">
|
|
<xsl:value-of select="@Author" disable-output-escaping="yes" />,
|
|
</span>
|
|
<span class="date">
|
|
<xsl:value-of select="ddwrt:FormatDate(string(@Created) ,1035 ,1)" />
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<span class="hdr">Viimeisin muokkaaja: </span>
|
|
<span class="people">
|
|
<xsl:value-of select="@Editor" disable-output-escaping="yes" />,
|
|
</span>
|
|
<span class="date">
|
|
<xsl:value-of select="ddwrt:FormatDate(string(@Modified) ,1035 ,1)" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="itemFooter">
|
|
<a href="~Site/_layouts/15/taloyhtio/companyautomation/acnews.aspx">Arkisto</a>
|
|
</div>
|
|
<xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
|
|
<span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view" />
|
|
</xsl:if>
|
|
</div>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|