Copied to clipboard

Flag this post as spam?

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


  • SinkyPars 132 posts 175 karma points
    Nov 24, 2010 @ 15:10
    SinkyPars
    0

    Getting a value from a parameter

    Hi,

    I was wondering if anyone had a solution to this?

    I would imagine that something like below would work (but below doesnt):

    <xsl:variable name = "ColumnNo" select = "/macro/ColumnNo" />
       
    <xsl:value-of select="string(concat($currentPage/seo_column1,$ColumnNo))" disable-output-escaping="yes"/>

    The aim of this is to actually get a node value not the value of the concatonated string.

    Thanks

    Scott

  • Kim Andersen 1447 posts 2197 karma points MVP
    Nov 24, 2010 @ 15:48
    Kim Andersen
    0

    Hi Scott

    You should be able to it like this:

    <xsl:variable name="ColumnNo" select="/macro/ColumnNo" />
    <xsl:variable name="field" select="concat('seo_column',$ColumnNo)" />
      
    <xsl:value-of select="$currentPage/*[name()=$field]" disable-output-escaping="yes"/>

    /Kim A

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies