This content has been marked as final. Show 3 replies
> Question one is: how to get this rote's parent rotes without hard coding and
Do you mean PARENT (singular: there can be only one), or ANCESTORS?
Either way, have a look @ xpath's concept of AXES:
> Question two is: how make my search function to search the rote with one more
> argument? I.e. rote with argument name=roteName and argument status=visible.
You can do this:
[@colour='green' and @animal='marmoset']
This is worth reading:
Thank you Adam,
> Do you mean PARENT (singular: there can be only one), or ANCESTORS?
I mean user is in rote news_archive and i want to build his path from homepage to news_archive.
Like: Homepage > News > Archive.
Can I somehow get this branch with a single query if I know only that my current node is "news_archive" and my root node is "root"
ANCESTORS, that's right! Thank you, great link!
This one works good for me: XMLSearch(Application.rotes, "//rote[@name='ggg']/ancestor::*");