XPath - several attributes in one element

Hi community,

I'm trying to set up parser rules for a bilingual from which I only need certain sections. Basic structure is like this:

<page>
   <content language="de" title="Title">
       <keywords>abc</keywords>
       <role>abc</role>
   </content>
   <content language="en" title="Title">
       <keywords>abc</keywords>
       <role>abc</role>
   </content>
</page>

What I need to translate is: title and keywords, but only if language="en". How do I do this? So far I have manage to extract the keywords using XPath, but I don't know how to get the title. Thank you very much for your help!

Parents Reply
  • Sorry for the late reply. The project was postponed for a few months so I forgot to follow up on this, but now we are still facing the same issue. Unfortunately, your suggestion did not work, but I cannot figure out why.

    BTW, I accidentally posted the intial question form my colleague's account, hence I would like to apologise for the name confusion!

    EDIT: Thank you. The mistake was on my side. Your solution is of course correct. Thank you very much!

Children