Jeremias,

Note that you can use the ancestor axis:
xpath="//text[. = 'line1']/ancestor::pageViewport/@nr" 
instead of 
xpath="//text[. = 'line1']/../../../../../../../../../@nr"

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl

Reply via email to