Skip to content

Instantly share code, notes, and snippets.

@bauhouse
Created February 21, 2013 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bauhouse/5009211 to your computer and use it in GitHub Desktop.
Save bauhouse/5009211 to your computer and use it in GitHub Desktop.
<?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>
<?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