In experimentation with a much simpler and smaller XML file, it doesn't look like '//health-topic/@url" will not work, nor will '//@url' etc. So far, only spelling it all out will work. With child elements, such as <title>, an xpath of "//title" works fine, but it is beginning to same dangerous.
Is there any short-hand for the current node or the match? On Mon, Dec 8, 2014 at 4:42 PM, Dan Davis <dansm...@gmail.com> wrote: > When I have a forEach attribute like the following: > > > forEach="/medical-topics/medical-topic/health-topic[@language='English']" > > And then need to match an attribute of that, is there any alternative to > spelling it all out: > > <field column="url" > xpath="/medical-topics/medical-topic/health-topic[@language='English']/@url"/> > > I suppose I could do "//health-topic/@url" since the document should then > have a single health-topic (as long as I know they don't nest). > >