title: DataWeaver Mule Document section 1.1.2 and 3.4 examples not working?
body: <p>Going through the Dataweaver documentaion 
   Link:<a href="https://developer.mulesoft.com/docs/dataweave#_attribute_selector_expressions" rel="nofollow">https://developer.mulesoft.com/docs/dataweave#_attribute_selector_expressions</a></p>
  
  <p>Section 3.4  Key Present
  Trying out the example provide  below .</p>
  
  <pre><code>Input:
         &lt;users&gt;
       &lt;name&gt;Mariano&lt;/name&gt;
         &lt;name&gt;Luis&lt;/name&gt;
          &lt;name&gt;Mariano&lt;/name&gt;
    &lt;/users&gt;
  </code></pre>
  
  <p>Transform:</p>
  
  <pre><code>        %dw 1.0
        %input payload application/xml   
        %output application/xml
         ---
         users: payload.users.name[?($ == "Mariano")]
  </code></pre>
  
  <p>when I try to give this expression in my DataWeaver it  gives warning like <code>cannot coerce a:string to a: array:(7,92)</code>.
  Have given the same way mentioned in the document. Could anyone  please advice.</p>
  
  <p>Expected Response:</p>
  
  <pre><code>           &lt;?xml version="1.0" encoding="UTF-8"?&gt;
            &lt;users&gt;
            &lt;name&gt;Mariano&lt;/name&gt;
            &lt;name&gt;Mariano&lt;/name&gt;
            &lt;/users&gt;
  </code></pre>
  
  <p>Also in the document 1.1.2 string manipulation example wasn't working for me</p>
  
  <pre><code>        %dw 1.0
          %input payload application/xml
          %output application/json
           %function words(name) name splitBy " "
           ---
         contacts: payload.users.*user map using (parts =  words($.name)){
          firstName: parts[0],
          (secondName: parts[1]) when (sizeOf parts) &gt; 2,
          lastName: parts[-1],
          email: "$((lower $.name) replace " " with ".")@acme.com.ar",
        address: $.street
           }
  </code></pre>
  
  <p>showing error like <code>multiple marker at this line missing '}' no viable alternative at input email</code></p>
  
  <p>Started learning and working out the examples provided. Thanks.</p>