AnsweredAssumed Answered

How to select parent of a given type somwhere in hierarchy?

Question asked by mmalczewski on Mar 17, 2009
Latest reply on Mar 19, 2009 by rogier.oudshoorn
Hello,

My type ce:festival extends cm:folder. Inside of this festival there can be many folders with subfolders. Somewhere in hierachy there is a node for which I need to select ce:festival it is under. I do not know how deep it is - users can create as many folders as they want.

For example, it could look like this:

+ COMPANYHOME
    + festival (of type ce:festival)
        + folder1
            + folder1_1
                + folder1_1_1
                    + folder1_1_1_1
                        - my_node

or like this:

+ COMPANYHOME
  + festival (of type ce:festival)
    + folder1
      - my_node

How to get to "festival" having my_node reference? My xpath experiments do not seem to work.

mm

Outcomes