I don't believe there are any alternatives. At least I could not get
anything but the full path to work.
Regards,
   Alex.
Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr popularizers community: https://www.linkedin.com/groups?gid=6713853


On 8 December 2014 at 17:01, Dan Davis <dansm...@gmail.com> wrote:
> 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).
>>
>>

Reply via email to