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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...