Copied to clipboard

Flag this post as spam?

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


  • skiltz 501 posts 701 karma points
    Dec 10, 2010 @ 02:28
    skiltz
    0

    Parameters and NodeTypeAlias

    Doesn't work
    <xsl:apply-templates select="$RootNode//* [@isDoc][(self::$IType) and string(umbracoNaviHide) != '1']">

    Does Work
    <xsl:apply-templates select="$RootNode//* [@isDoc][(self::BlogPost) and string(umbracoNaviHide) != '1']">

    Error is System.Xml.Xsl.XslLoadException: Expected a node test, found '$'.

    How can I pass in a parameter?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 10, 2010 @ 02:33
    Tom Fulton
    0

    Haven't tested but possibly:  name() = $IType   instead of      self::$IType  ?

  • skiltz 501 posts 701 karma points
    Dec 10, 2010 @ 02:40
    skiltz
    0

    Well that doesn't throw an error when I save but does when I view the page...

  • skiltz 501 posts 701 karma points
    Dec 10, 2010 @ 02:48
    skiltz
    0

    That does work sorry :) 

  • 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