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
I want to get all nodes of type 'product' under a specific node (all, children, granchildren, great gran children etc...)
<xsl:variable name="productNode" select="umbraco.library:GetXmlNodeById(1132)" />
<xsl:for-each select="$productNode/descendant-or-self ">
<xsl:value-of select="@nodeName"/>
</xsl:for-each>
this however returns nothing. if i do:
<textarea><xsl:value-of select="$productNode" /></textarea>
it does display the xml for the correct node
Hi,
Either one of these should work:
<xsl:for-each select="$productNode/descendant::Product [@isDoc]">
or
<xsl:for-each select="$productNode//Product [@isDoc]">
Hope this helps,Tom
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
get all nodes of certain document type under specified node
I want to get all nodes of type 'product' under a specific node (all, children, granchildren, great gran children etc...)
<xsl:variable name="productNode" select="umbraco.library:GetXmlNodeById(1132)" />
<xsl:for-each select="$productNode/descendant-or-self ">
<xsl:value-of select="@nodeName"/>
</xsl:for-each>
this however returns nothing. if i do:
<textarea><xsl:value-of select="$productNode" /></textarea>
it does display the xml for the correct node
Hi,
Either one of these should work:
or
Hope this helps,
Tom
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.