title: Xquery append text to tag values depending of the element type
body: <p>I need to get the values of some elements and then some text needs to be added depending on the element, for example:</p>
  
  <pre><code>&lt;elementType&gt;a&lt;/elementType&gt; 
  &lt;otherElementType&gt;b&lt;/otherElementType&gt; 
  &lt;elementType&gt;c&lt;/elementType&gt; 
  &lt;elementType&gt;d&lt;/elementType&gt;
  
  $doc//*[self::elementType or self::otherElementType]/string()
  
  "a"
  "b"
  "c"
  "d"
  </code></pre>
  
  <p>this returns the values but I don´t know how to get the values like this:</p>
  
  <pre><code>"a is an elementType"
  "b is an otherElementType"
  "c is an elementType"
  "d is an elementType"
  </code></pre>