Skip to content

Instantly share code, notes, and snippets.

@abtris
Created June 30, 2011 10:50
Show Gist options
  • Select an option

  • Save abtris/1056003 to your computer and use it in GitHub Desktop.

Select an option

Save abtris/1056003 to your computer and use it in GitHub Desktop.
Two columns by xslt
<dl class="fields">
<xsl:for-each select="fields/item/item[position()&lt;=floor(count(../item) div 2)]">
<dd><a href="{/doc/body/links/link[@id='Jobs_Academy']}{seourl}"><xsl:value-of select="name" /></a></dd>
</xsl:for-each>
<xsl:comment>
Cleaner
</xsl:comment>
</dl>
<dl class="fields">
<xsl:for-each select="fields/item/item[position()&gt;ceiling(count(../item) div 2)]">
<dd><a href="{/doc/body/links/link[@id='Jobs_Academy']}{seourl}"><xsl:value-of select="name" /></a></dd>
</xsl:for-each>
<xsl:comment>
Cleaner
</xsl:comment>
</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment