XPath: nested elements

Hi community,

I know there is a very simple solution to this, but right now I can't really wrap my head around it.

I have an XML file like this:

 

<DIV CLASS="Class1">
    <SPAN ID="123" TYPE="no">[[[include:reference]]] </SPAN>
</DIV>

<DIV CLASS="Class2">

   <SPAN ID="123" TYPE="no">
     <LABEL CLASS="Class1">Bâtiment</LABEL>
   </SPAN>

</DIV">

I only need to translate the LABEL text but not the SPAN. However, if I set a rule not to translate the SPAN elements, the LABEL elements are also excluded from translation. How do I go about this?

Parents Reply Children
No Data