Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Haven't tested but possibly: name() = $IType instead of self::$IType ?
Well that doesn't throw an error when I save but does when I view the page...
That does work sorry :)
is working on a reply...
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.
Continue discussion
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?
Haven't tested but possibly: name() = $IType instead of self::$IType ?
Well that doesn't throw an error when I save but does when I view the page...
That does work sorry :)
is working on a reply...
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.