In my XSLT, I am getting all children of my slideshow root via
<xsl:for-each select="umbraco.library:GetXmlNodeById(1157)/* [name() = 'HeaderSlideshow' and @isDoc]">
but now I want to filter further by checking to see if a certain item is selected in the node's checkboxlist. I want to do something like this but it's not right. Worst case, I have to add an IF check for each node.
<xsl:for-each select="umbraco.library:GetXmlNodeById(1157)/* [name() = 'HeaderSlideshow' and @isDoc and @slidePlacement contains ('160')]">
Filter by value in checkboxlist in XSLT
In my XSLT, I am getting all children of my slideshow root via
but now I want to filter further by checking to see if a certain item is selected in the node's checkboxlist. I want to do something like this but it's not right. Worst case, I have to add an IF check for each node.
Ok, I got it to work, but now I want to streamline my code and pass a variable instead of having three nearly identical sections.
So this works:
But this does not:
...
How can I use the $targetPage variable?
is working on a reply...