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
Hi All. I am having problem to select only first level child nodes. Could anyone give me some idea?
Thank you
Hey,
Do you want to post the code you have and we can see where things are going wrong?
Matt
Hi lingjing,
You could start with this and tweak it to your liking (it's compatible with the XML format of 4.0 as well as 4.5):
<xsl:variable name="level1" select="$currentPage/ancestor-or-self::*[@level = 1]" /> <xsl:template match="/"> <xsl:apply-templates select="$level1/node" /> <xsl:apply-templates select="$level1/*[@isDoc]" /> </xsl:template> <xsl:template match="node | *[@isDoc]"> <p> <xsl:value-of select="@nodeName" /> </p> </xsl:template>
/Chriztian
Thanks Chriztiain. you solved my problem
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
How to only select first level node?
Hi All. I am having problem to select only first level child nodes. Could anyone give me some idea?
Thank you
Hey,
Do you want to post the code you have and we can see where things are going wrong?
Matt
Hi lingjing,
You could start with this and tweak it to your liking (it's compatible with the XML format of 4.0 as well as 4.5):
/Chriztian
Thanks Chriztiain. you solved my problem
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.