So, I'm trying to work my way to what is essentially a great aunt/uncle of the context item and then looking to its descendents for specific item types.
So there's a folder and within that folder there are multiple organization nodes, and on the same level as those is another that is called 'All Organization'. Within that are items that I want to look for. So my attempt at trying to do this failed, but here it is:
ancestor::*[@@Templatename='Folder']/[@@name = startswith('All ')//*[@@templatename='Author']
When I try the following on it's own:
ancestor::*[@@Templatename='Folder']
It actually shows two folders not one, which seems strange, since I thought this was just supposed to yield the closest ancestor that matched the query, not multiple? But regardless, I'm wondering startswith can be used like this, and if so, how can I rewrite the syntax to work?