Last active
December 24, 2015 09:19
-
-
Save DominicCronin/6776110 to your computer and use it in GitHub Desktop.
Example of Tridion XSLT templating
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
</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