Hi,
I have a basic XML file I’m wanting to use as a name/ID lookup within an asset listing for a data record.
The problem I’m having is that I can’t get keyword replacements to work in the xpath expression.
e.g. using a hard coded name it works and returns the ID:
%globals_asset_contents_raw:12345^xpath:://lookup/name[.="Brisbane City"]/@id%
But trying to use the data source value as a keyword replacement I get no joy:
%globals_asset_contents_raw:12345^xpath:://lookup/name[.="{ds__region}"]/@id%
Assuming 12345 is the XML file asset, and %ds__region% is the data source value I want to look up in the xpath expression.
Sample XML:
<lookup>
<name id="brisbane-city">Brisbane City</name>
<name id="cairns">Cairns</name>
</lookup>
Am I just missing something basic (please let that be the case) or is it not possible?
Cheers,
Lisa