Is it possible to configure xml.cfg to apply metadata from a parent node to all children under that node?
For example, we have the following structure in an XML source:
<results count="123" date-accessed="abc" source="xyz">
<person>
<name></name>
<title></title>
...
</person>
<person>...</person>
...
</results>
I've set up xml.cfg so it's storing name, title, etc data fine, no issues. What I'm trying to do, though, is get the values for date-accessed and source also stored against each 'person' record. I have tried the following (based on a metadata class 'f'):
f,0,,//results@source
-- AND --
f,0,,/results@source
Neither picked up anything.
I can workaround it by creating an xsl and transforming the results, but that seems like taking a sledge-hammer when perhaps only a trowl is needed.