Last active
August 29, 2015 14:18
-
-
Save spdustin/d5b59e76a09c5ba510dc to your computer and use it in GitHub Desktop.
Announcements Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dsQueryResponse> | |
<Rows> | |
<Row ID="1" | |
Title="Get Started with Microsoft SharePoint Foundation!" | |
Body="<div class="ExternalClass7879AECA66014FDDB85450C1221CBCC4">Microsoft SharePoint Foundation helps you to be more effective by connecting people, information, and documents. For information on getting started, see Help.</div>" | |
Group="Group B"/> | |
<Row ID="2" | |
Title="Second announcement." | |
Body="<div class="ExternalClass8297C2B34D8E4E958D2A0413F85229BC">Bummer, there was already one there, so I couldn't claim <strong>FIRSTIES!</strong><br /><p></p></div>" | |
Group="Group A"/> | |
<Row ID="3" | |
Title="Third" | |
Body="<div class="ExternalClass7654F84804454ABFAF7EE95EC25CB53F">Announcements like this are getting boring, eh?<br /><p></p></div>" | |
Group="Group B"/> | |
<Row ID="4" | |
Title="Another" | |
Body="<div class="ExternalClass4ED5EA550300454CB7FB4FE0ECF3C4C8"><p>announcement</p></div>" | |
Group="Group A"/> | |
</Rows> | |
</dsQueryResponse> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- This XSL Stylesheet created by SharePoint Experts, Inc. --> | |
<!-- http://sharepointexperience.com --> | |
<xsl:output method="html" indent="yes"/> | |
<!-- This template is the "wrapper" or "container" for the custom view. --> | |
<xsl:template match="/"> | |
<!-- This is the actual wrapper element that will be emitted --> | |
<div> | |
<ul> | |
<!-- This will tell the data view to look for the actual content | |
and come back when it's done. --> | |
<xsl:apply-templates/> | |
</ul> | |
</div> | |
<!-- end wrapper --> | |
</xsl:template> | |
<xsl:template match="/dsQueryResponse/Rows/Row"> | |
<!-- This markup is used for each item in the list --> | |
<li id="item-{@ID}"> | |
<xsl:value-of select="@Title"/> | |
</li> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Accidentally pasted the purposefully broken one earlier. 😄