Skip to content

Instantly share code, notes, and snippets.

@OllyHodgson
Created May 19, 2011 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OllyHodgson/980768 to your computer and use it in GitHub Desktop.
Save OllyHodgson/980768 to your computer and use it in GitHub Desktop.
Starting point for XSL in Sharepoint 2007 Data View Web Parts
<!--
NOTE: Add the SuppressWebPartChrome="True" attribute to <WebPartPages:DataFormWebPart> to get rid of the tables SharePoint normally surrounds the web part with.
-->
<xsl:stylesheet
version="1.0"
exclude-result-prefixes="xsl msxsl ddwrt x d asp ddwrt2 SharePoint __designer"
xmlns:x="http://www.w3.org/2001/XMLSchema"
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
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" version="4.01" indent="no" encoding="utf-8"/>
<!-- This template matches the root node -->
<xsl:template match="/">
<xsl:apply-templates select="dsQueryResponse/Rows/Row">
</xsl:apply-templates>
</xsl:template>
<!-- Do per-item stuff in this one -->
<xsl:template match="Row">
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment