Created
February 21, 2013 22:56
-
-
Save bauhouse/5009211 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" ?> | |
<data> | |
<explore-screenshots> | |
<section id="75" handle="screenshots">Screenshots</section> | |
<entry id="33056"> | |
<caption mode="formatted"><p>Symphony's interface is simple and elegant.</p></caption> | |
<image size="79 KB" path="/assets/images/backend" type="image/png"> | |
<filename>entry-list-1338263233.png</filename> | |
<meta creation="2012-05-29T13:47:13+10:00" width="802" height="470" /> | |
</image> | |
</entry> | |
<entry id="33058"> | |
<caption mode="formatted"><p>Symphony's bulk editing features will save you time.</p></caption> | |
<image size="69 KB" path="/assets/images/backend" type="image/png"> | |
<filename>entry-bulk-editing-1338263206.png</filename> | |
<meta creation="2012-05-29T13:46:46+10:00" width="849" height="570" /> | |
</image> | |
</entry> | |
<entry id="33059"> | |
<caption mode="formatted"><p>Symphony gives you a powerful front-end debugging interface.</p></caption> | |
<image size="76 KB" path="/assets/images/backend" type="image/png"> | |
<filename>devkit-combo-1338263191.png</filename> | |
<meta creation="2012-05-29T13:46:31+10:00" width="807" height="562" /> | |
</image> | |
</entry> | |
</explore-screenshots> | |
</data> |
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" ?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" | |
encoding="UTF-8" | |
indent="yes" /> | |
<xsl:param name="workspace" select="'http://getsymphony.com/workspace'" /> | |
<xsl:template match="/data/explore-screenshots"> | |
<script> | |
<xsl:text> | |
<![CDATA[$.backstretch([ | |
]]></xsl:text> | |
<xsl:apply-templates select="entry" mode="backstretch" /> | |
<xsl:text><![CDATA[ | |
], { | |
fade: 750, | |
duration: 4000 | |
});]]> | |
</xsl:text> | |
</script> | |
</xsl:template> | |
<xsl:template match="entry" mode="backstretch"> | |
<xsl:text>"</xsl:text><xsl:value-of select="concat($workspace, image/@path, '/', image/filename)" /><xsl:text>"</xsl:text> | |
<xsl:if test="position() != last()"> | |
<xsl:text>, | |
</xsl:text> | |
</xsl:if> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment