title: XSLT for-each always takes only one element
body: <p>I have XML which contains multiple elements:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;data&gt;
  &lt;element&gt;
   &lt;ip&gt;192.168.188.101&lt;/ip&gt;
  &lt;/element&gt;
  &lt;element&gt;
   &lt;ip&gt;192.168.188.100&lt;/ip&gt;
  &lt;/element&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>I want to make it to this structure:</p>
  
  <pre><code>&lt;SYNCDW&gt;
  &lt;CIDWSet&gt;
  &lt;CI&gt;
  &lt;CINUM&gt;192.168.188.101&lt;/CINUM&gt;
  &lt;/CI&gt;
  &lt;CI&gt;
  &lt;CINUM&gt;192.168.188.100&lt;/CINUM&gt;
  &lt;/CI&gt;
  &lt;/CIDWSet&gt;
  &lt;/SYNCDW&gt;
  </code></pre>
  
  <p>But always one element is processed, the first one, although I have for-each.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"&gt;
      &lt;xsl:output method="xml" encoding="UTF-8" indent="yes"/&gt;
      &lt;xsl:template match="/"&gt;
          &lt;SyncCIDW xmlns="http://www.ibm.com/maximo"&gt;
              &lt;xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.ibm.com/maximo&lt;/xsl:attribute&gt;
              &lt;CIDWSet&gt;
              &lt;xsl:for-each select="*[local-name()='data' and namespace-uri()='']/*[local-name()='element' and namespace-uri()='']"&gt;
  
                      &lt;CI&gt;
                          &lt;CINUM&gt;
                              &lt;xsl:value-of select="string(*[local-name()='data' and namespace-uri()='']/*[local-name()='element' and namespace-uri()='']/*[local-name()='ip' and namespace-uri()=''])"/&gt;
                          &lt;/CINUM&gt;
                      &lt;/CI&gt;
  
              &lt;/xsl:for-each&gt;
              &lt;/CIDWSet&gt;
          &lt;/SyncCIDW&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Why I am not getting processed all other elements but only the first one?
  Thank you in advance for help</p>