ok, will change just to note that the documents representing each path element can be of any document class.