Skip to content

Instantly share code, notes, and snippets.

@DominicCronin
Last active December 24, 2015 09:19
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 DominicCronin/6776110 to your computer and use it in GitHub Desktop.
Save DominicCronin/6776110 to your computer and use it in GitHub Desktop.
Example of Tridion XSLT templating
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$content/linkitem:link_component">
<xsl:apply-templates select="$content/linkitem:link_component">
<xsl:with-param name="linktitle" select="$link_title"/>
<xsl:with-param name="linktext" select="$linktext"/>
<xsl:with-param name="linkclass" select="$linkclass"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$content/linkitem:link_external">
<xsl:apply-templates select="$content/linkitem:link_external">
<xsl:with-param name="linktitle" select="$link_title"/>
<xsl:with-param name="linktext" select="$linktext"/>
<xsl:with-param name="linkclass" select="$linkclass"/>
</xsl:apply-templates>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="linkitem:link_external">
<xsl:param name="linktitle"/>
<xsl:param name="linktext"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment