Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kelsee Ishmael 71 posts 158 karma points
    Apr 30, 2012 @ 19:52
    Kelsee Ishmael
    0

    "xsl:call-template" razor equivalent.

    Hello, I was wondering what the equivilent would be in razor of the following xslt.

    <xsl:template match="/">
    <a href="#">
    <xsl:call-template name="getNodeName">
      <xsl:with-param name="linkNode" select="$linkNode"/>
    </xsl:call-template>
    </a>
    </xsl:template>
    
    <xsl:template name="getNodeName">
    <xsl:param name="linkNode" select="$currentPage" />
       <xsl:value-of select="$linkNode/@nodeName"/>
    </xsl:template>

     

  • Kelsee Ishmael 71 posts 158 karma points
    Apr 30, 2012 @ 20:17
    Kelsee Ishmael
    0

    P.S. - I know that the code above isn't logical in any way. I'm just looking for a way to call a function in razor for use multiple times within a macro partial.

Please Sign in or register to post replies

Write your reply to:

Draft