Unlocking the Mysteries of Data View Web Part XSL Tags – Part 6 – <xsl:variable>

This entry is part 6 of 21 in the series Unlocking the Mysteries of Data View Web Part XSL Tags

Cross-posted from EndUserSharePoint.com… <xsl:variable> A value you create for use within a template which is only defined within the scope of that template. Parameters and variables are used interchangeably, but how you create them is a bit different. While a parameter is a value which you expect to receive, a variable is something which you…

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 7 – <xsl:for-each>

This entry is part 7 of 21 in the series Unlocking the Mysteries of Data View Web Part XSL Tags

Cross-posted from EndUserSharePoint.com… <xsl:for-each> A way to iterate over a nodeset (group of rows). Once you have a rowset like the $Rows I talked about in the prior article about <xsl:variable>, you’ll want to do something with it. If you’ve ever used a report writer or created reports in an application like Microsoft Access, the…

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 8 – <xsl:sort>

This entry is part 8 of 21 in the series Unlocking the Mysteries of Data View Web Part XSL Tags

Cross-posted from EndUserSharePoint.com… <xsl:sort> Used within an <xsl:for-each> to determine the sort order in which the nodeset (group of rows) are processed. <xsl:sort> allows you to change the default sort order of the items as they are displayed in a Data View Web Part (DVWP).  By default (in almost all cases), the items will be…

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 9 – <xsl:if>

This entry is part 9 of 21 in the series Unlocking the Mysteries of Data View Web Part XSL Tags

Cross-posted from EndUserSharePoint.com… <xsl:if> A single conditional test. If the test is true, then the contained code is executed. <xsl:if> is one of the simple workhorses in the Data View Web Part (DVWP) XSL arsenal.  Its entire goal in life is to determine whether the code it contains is executed or not. Looking at our…

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 10 – <xsl:choose>

This entry is part 10 of 21 in the series Unlocking the Mysteries of Data View Web Part XSL Tags

Cross-posted from EndUserSharePoint.com… <xsl:choose> Like <xsl:if>, but with multiple possibilities, more like if-then-else. <xsl:when> Used within <xsl:choose> as a conditional test.  If the test is true, then the contained code is executed and the <xsl:choose> is exited. <xsl:otherwise> Used within <xsl:choose> as the “fall-back” condition. If none of the prior <xsl:when>s have been executed, the…