Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Possible to combine multiple /process_data/

Avatar

Level 4

Hi,

I cannot seem to find a way around this challenge. No documentation to find so hope one of your clever heads have solved it. bring it

I want to create a combined Xpath expression with multiple variables. Right now I have to hardcode a value I have in a varible, to make it work - and it is that I want to solve. The expression will grab a xml record in a larger xml structure.

works:

/process_data/xmlRecordsFormData/formDataRecords/LC_KOMA001[number(//@iCnt)]

But:

The value='LC_KOMA001' is a changing formTemplate-name, that I have allready stored in a variable= sFormTemplate

So want to do something like:

/process_data/xmlRecordsFormData/formDataRecords//process_data/@sFormTemplate[number(/process_data/@iCnt)]

I do not know how to create the right syntax for this to work. I really need your help.

Thanks in advance

/Thomas

1 Reply

Avatar

Level 10

You can use script activity and write pojo code to evaluate your XPATH

expression.