Created
June 29, 2011 07:58
-
-
Save Znow/1053372 to your computer and use it in GitHub Desktop.
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> | |
| <xsl:stylesheet | |
| version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:msxml="urn:schemas-microsoft-com:xslt" | |
| xmlns:umbraco.library="urn:umbraco.library" | |
| exclude-result-prefixes="msxml umbraco.library"> | |
| <xsl:output method="xml" omit-xml-declaration="yes"/> | |
| <xsl:param name="currentPage"/> | |
| <xsl:variable name="commerceCaseRoot" select="1309" /> | |
| <xsl:variable name="supportCaseRoot" select="1285" /> | |
| <xsl:variable name="productionCaseRoot" select="1284" /> | |
| <xsl:template match="/"> | |
| <!--<xsl:value-of select="$partnerList" />--> | |
| <xsl:variable name="commerceCases" select="umbraco.library:GetXmlNodeById($commerceCaseRoot)/CommerceCase" /> | |
| <xsl:for-each select="$commerceCases"> | |
| <xsl:variable name="customerList" select="umbraco.library:Split(customerList, ',')" /> | |
| <xsl:if test="contains($customerList, $currentPage/@id)"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:value-of select="umbraco.library:NiceUrl(@id)" /> | |
| </xsl:attribute> | |
| <xsl:attribute name="class"> | |
| ref_link | |
| </xsl:attribute> | |
| <xsl:value-of select="title" /> | |
| </a> | |
| <br /> | |
| </xsl:if> | |
| </xsl:for-each> | |
| <xsl:variable name="supportCase" select="umbraco.library:GetXmlNodeById($supportCaseRoot)/SupportCase" /> | |
| <xsl:for-each select="$supportCase"> | |
| <xsl:variable name="customerList" select="umbraco.library:Split(customerList, ',')" /> | |
| <xsl:if test="contains($customerList, $currentPage/@id)"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:value-of select="umbraco.library:NiceUrl(@id)" /> | |
| </xsl:attribute> | |
| <xsl:attribute name="class"> | |
| ref_link | |
| </xsl:attribute> | |
| <xsl:value-of select="title" /> | |
| </a> | |
| <br /> | |
| </xsl:if> | |
| </xsl:for-each> | |
| <xsl:variable name="productionCase" select="umbraco.library:GetXmlNodeById($productionCaseRoot)/ProductionCase" /> | |
| <xsl:for-each select="$productionCase"> | |
| <xsl:variable name="customerList" select="umbraco.library:Split(customerList, ',')" /> | |
| <xsl:if test="contains($customerList, $currentPage/@id)"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:value-of select="umbraco.library:NiceUrl(@id)" /> | |
| </xsl:attribute> | |
| <xsl:attribute name="class"> | |
| ref_link | |
| </xsl:attribute> | |
| <xsl:value-of select="title" /> | |
| </a> | |
| <br /> | |
| </xsl:if> | |
| </xsl:for-each> | |
| </xsl:template> | |
| </xsl:stylesheet> | |
| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment