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,
I am trying to get the parent nodes siblings in XSLT and having some difficulty.
Here is my structure:
A
a
B
C
From 'a' I want to select 'A' 'B' and 'C'
Thanks
Owen
Hi Owen,
Just jump up two steps and take the (document) children:
<xsl:variable name="parentAndSiblings" select="$currentPage/../../*[@isDoc]" />
/Chriztian
PS: If Axes confuse you, take a look at the Axes Visualizer !
Thanks again Chriztian ! Hero!
<xsl:for-each select="$a/../../*"> bla-bla-bla
'$a' is of course supposed to contain your 'a' node.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Parents Siblings XSLT
Hi,
I am trying to get the parent nodes siblings in XSLT and having some difficulty.
Here is my structure:
A
a
B
C
From 'a' I want to select 'A' 'B' and 'C'
Thanks
Owen
Hi Owen,
Just jump up two steps and take the (document) children:
/Chriztian
PS: If Axes confuse you, take a look at the Axes Visualizer !
Thanks again Chriztian ! Hero!
Hi,
'$a' is of course supposed to contain your 'a' node.
is working on a reply...