Skip to content

Instantly share code, notes, and snippets.

@codingisacopingstrategy
Created June 8, 2010 16:09
Show Gist options
  • Save codingisacopingstrategy/430247 to your computer and use it in GitHub Desktop.
Save codingisacopingstrategy/430247 to your computer and use it in GitHub Desktop.
<xsl:template match="data">
<xsl:apply-templates select="contact/entry"/>
</xsl:template>
<xsl:template match="contact/entry">
<div class="item header">
<h3><span><xsl:value-of select="category"/> &gt;</span> <xsl:value-of-select="title"/></h3>
<h4>Project: logo &amp; corporate identity</h4>
<p><img src="static/ex_coco_log.png" /></p>
</div>
<div class="subject">
<p>Subject: <xsl:value-of select="beschrijving"/></p>
</div>
</xsl:template>
<xsl:template match="data">
<xsl:apply-templates select="projects/entry"/>
</xsl:template>
<xsl template match="projects/entry">
<div class="item header">
<h3><span><xsl:value-of select="category"/> &gt;</span> <xsl:value-of-select="title"/></h3>
<h4>Project: logo &amp; corporate identity</h4>
<p><img src="static/ex_coco_log.png" /></p>
</div>
<div class="subject">
<p>Subject: <xsl:value-of select="description"/></p>
</div>
</xsl:template>
<xsl:template match="data">
<xsl:apply-templates select="projects/entry"/>
</xsl:template>
<xsl:template match="projects/entry"/>
<div class="item">
<p><a href="example_project.html"><img src="static/ex_coco_log.png" style="width:541px;height:106px;"></a></p>
</div>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment