Created
November 9, 2014 15:17
-
-
Save pigeonflight/0f90394e6165b97de003 to your computer and use it in GitHub Desktop.
Transform Deco (Sunburst Theme) Grid to Bootstrap 3 grid #diazo
This file contains 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
<replace content="//div[contains(@class,'cell')]/@class"> | |
<xsl:attribute name="class"> | |
<xsl:if test='contains(current(),"width-3:4")'>col-md-9</xsl:if> | |
<xsl:if test='contains(current(),"width-2:3")'>col-md-8</xsl:if> | |
<xsl:if test='contains(current(),"width-1:2")'>col-md-6</xsl:if> | |
<xsl:if test='contains(current(),"width-1:3")'>col-md-4</xsl:if> | |
<xsl:if test='contains(current(),"width-1:4")'>col-md-3</xsl:if> | |
<xsl:if test='contains(current(),"width-full")'>col-md-12</xsl:if> | |
</xsl:attribute> | |
</replace> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment