Using Display Suite View Mode Switcher
Well, I happened to be looking at Display Suite Extras and found something I thought I might be able to use for a project I am working on. It creates a switc...
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="Catalog/Category">
<xsl:variable name="Cat" select="Name"/>
<xsl:for-each select="Site">
<xsl:value-of select="$Cat"/>
<xsl:text>	</xsl:text>
<xsl:copy-of select="Id"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="PopularityRank"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="Title"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="Description"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="Gravity"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="EarnedPerSale"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="PercentPerSale"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="TotalEarningsPerSale"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="TotalRebillAmt"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="Referred"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="Commission"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>