On Feb 26, 2013, at 1:54 PM, Hans Hagen <pra...@wxs.nl> wrote: > you go up to the parent of sections which to far up, try: > > section = xml.attribute(r, "..", "label", "X") > > or > > section = xml.filter(r, "../attribute(label)") > >
Mojca, Hans, thanks, that is exactly right! I wasn't too sure about ../../section, but now it makes sense. I have to study xpath a bit more, I guess. All best Thomas ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________