Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:atom="http://www.w3.org/2005/Atom">
- <xsl:include href="../utilities/master.xsl"/>
- <xsl:template match="data">
- <xsl:apply-templates select="blog-entry/entry"/>
- <div id="flickr-list">
- <ul>
- <xsl:apply-templates select="flickr//atom:entry"/>
- </ul>
- </div>
- </xsl:template>
- <xsl:template match="blog-entry/entry">
- <div id="blog-entry" class="content">
- <h2><xsl:value-of select="title"/></h2>
- <ul class="meta">
- <li class="date">
- <xsl:call-template name="format-date">
- <xsl:with-param name="date" select="date"/>
- <xsl:with-param name="format" select="'x M Y'"/>
- </xsl:call-template>
- </li>
- </ul>
- <xsl:copy-of select="content/node()"/>
- </div>
- </xsl:template>
- <xsl:template match="flickr//atom:entry">
- <li>
- <a><xsl:attribute name="href">
- <xsl:value-of select="atom:link/@href"/>
- </xsl:attribute>
- <img width="800px"><xsl:attribute name="src">
- <xsl:value-of select="atom:link[position() = 2]/@href"/>
- </xsl:attribute></img>
- </a>
- </li>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement