title: Append a repeated element name in XML using XSLT?
body: <p>If I have an XML file that looks like this:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;property&gt;
          &lt;picture&gt;http://example.com/image1.jpg&lt;/picture&gt;
          &lt;picture&gt;http://example.com/image2.jpg&lt;/picture&gt;
          &lt;picture&gt;http://example.com/image3.jpg&lt;/picture&gt;
          &lt;picture&gt;http://example.com/image4.jpg&lt;/picture&gt;
          &lt;picture&gt;http://example.com/image5.jpg&lt;/picture&gt;
      &lt;/property&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>How would I go about transforming it to where each picture URL element is unique like this:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;property&gt;
          &lt;picture1&gt;http://example.com/image1.jpg&lt;/picture1&gt;
          &lt;picture2&gt;http://example.com/image2.jpg&lt;/picture2&gt;
          &lt;picture3&gt;http://example.com/image3.jpg&lt;/picture3&gt;
          &lt;picture4&gt;http://example.com/image4.jpg&lt;/picture4&gt;
          &lt;picture5&gt;http://example.com/image5.jpg&lt;/picture5&gt;
      &lt;/property&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>Am I correct in assuming that there must be the same amount of  elements per  even if some of the  elements contain empty values (the number of picture URLs does vary by property)?</p>