Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
Created March 29, 2013 15:43
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 jdsimcoe/5271636 to your computer and use it in GitHub Desktop.
Save jdsimcoe/5271636 to your computer and use it in GitHub Desktop.
Category All Template
<xsl:template match="/data/category-all/entry">
<xsl:call-template name="photo-by-category-entry"/>
</xsl:template>
<xsl:template name="photo-by-category-entry">
<div class="span3 photo">
<a href="{$root}/photo/category/{title/@handle}" class="photo-entry home">
<div class="metadata">
<h4>
<xsl:value-of select="title" />
</h4>
<p class="description">
<em><xsl:value-of select="description"/></em>
</p>
</div>
<img class="img-polaroid" src="/workspace/img/spacer.gif" alt="{image/item/caption}" style="width:240px; height:240px;">
<xsl:attribute name="data-responsimage">
<xsl:value-of select="//photo-all/entry[category/item/@id = @id]/image/item/image/filename" />
</xsl:attribute>
</img>
</a>
</div>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment