Created
January 11, 2013 17:00
-
-
Save uniquelau/4512302 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
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:umb="urn:umbraco.library" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
xmlns:cropup="urn:Eksponent.CropUp" | |
exclude-result-prefixes="umb cropup" | |
> | |
<xsl:output method="xml" omit-xml-declaration="yes"/> | |
<xsl:param name="currentPage"/> | |
<!-- Image Grid --> | |
<xsl:variable name="contentId" select="/macro/contentId" /> | |
<xsl:variable name="propertyAlias" select="/macro/property" /> | |
<xsl:variable name="grid" select="/macro/grid> | |
<xsl:variable name="the-above-"> | |
<grid w="1" h="1" /> | |
<grid w="1" h="1" /> | |
<grid w="2" h="2" /> | |
<grid w="1" h="1" /> | |
<grid w="1" h="1" /> | |
<grid w="1" h="1" /> | |
</xsl:variable> | |
<xsl:variable name="grid-node-process"> | |
<xsl:apply-templates select="msxsl:node-set($grid)" mode="grid"/> | |
</xsl:variable> | |
<xsl:variable name="grid-node-set" select="msxsl:node-set($grid-node-process)" /> | |
<!-- Process Grid --> | |
<xsl:template match="grid" mode="grid"> | |
<grid w="{@w}" h="{@h}" width="{./@w * 99}" height="{./@h * 160}" /> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment