I'm in need for some help with a xpath-expression and I'm hoping that someone could point me in the right direction. I've attached the following screenshot:
What I'm looking for is the xpath to search in any of the "stu---"nodes (DocumentType: X) when located in the "search"-node. I'm on version 4.5.2.
If you "stu---" nodes are the only nodes to user DocumentType X, you could do something like this?
$currentPage/ancestor::root//*[name() = 'X' and @isDoc]
Which basically says, from the current page, travel to the root node, then find any decendants (at any level) which are documents, and which use the X document type.
Help with XPATH needed
Hi All,
I'm in need for some help with a xpath-expression and I'm hoping that someone could point me in the right direction. I've attached the following screenshot:
What I'm looking for is the xpath to search in any of the "stu---"nodes (DocumentType: X) when located in the "search"-node. I'm on version 4.5.2.
Thanks in advance! // Peter
Hey Peter,
If you "stu---" nodes are the only nodes to user DocumentType X, you could do something like this?
Which basically says, from the current page, travel to the root node, then find any decendants (at any level) which are documents, and which use the X document type.
Matt
Thanks! Works like a charm / Peter
Excellent.
Matt
is working on a reply...