<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic extracting the attribute value from a header in camel xquery in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extracting-the-attribute-value-from-a-header-in-camel-xquery/m-p/2341474#M109425</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I created a basic route with a cMessagingEndPoint that runs xquery below (See &lt;A href="https://help.talend.com/reader/5cfNfbUi1rlipcLK8el0ww/Wj_fb5FTf4hdtzMUgnUQNQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/5cfNfbUi1rlipcLK8el0ww/Wj_fb5FTf4hdtzMUgnUQNQ&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;people&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;for $p in /people//person&lt;BR /&gt;return&lt;BR /&gt;&amp;lt;person&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;{$p/firstName/text()}&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;{$p/lastName/text()}&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;/person&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/people&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I added a cSetHeader just before my cMessagingEndPoint to assign header whose name is "foo"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My route looks like:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 771px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr4a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130407i1D1595D7CC5405E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr4a.png" alt="0683p000009Lr4a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to be able to use this header value in my xquery.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr4p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149539i338D712CF75440BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr4p.png" alt="0683p000009Lr4p.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I tried many syntax but none of them worked out...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For instance I tried adding these lines in my xQuery:&lt;BR /&gt;&amp;lt;headerValue&amp;gt;&lt;BR /&gt;{ $in.headers.foo }&lt;BR /&gt;&amp;lt;/headerValue&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does someone know what is the syntax ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:18:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:18:06Z</dc:date>
    <item>
      <title>extracting the attribute value from a header in camel xquery</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-the-attribute-value-from-a-header-in-camel-xquery/m-p/2341474#M109425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I created a basic route with a cMessagingEndPoint that runs xquery below (See &lt;A href="https://help.talend.com/reader/5cfNfbUi1rlipcLK8el0ww/Wj_fb5FTf4hdtzMUgnUQNQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/5cfNfbUi1rlipcLK8el0ww/Wj_fb5FTf4hdtzMUgnUQNQ&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;people&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;for $p in /people//person&lt;BR /&gt;return&lt;BR /&gt;&amp;lt;person&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;{$p/firstName/text()}&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;{$p/lastName/text()}&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;/person&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/people&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I added a cSetHeader just before my cMessagingEndPoint to assign header whose name is "foo"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My route looks like:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 771px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr4a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130407i1D1595D7CC5405E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr4a.png" alt="0683p000009Lr4a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to be able to use this header value in my xquery.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr4p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149539i338D712CF75440BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr4p.png" alt="0683p000009Lr4p.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I tried many syntax but none of them worked out...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For instance I tried adding these lines in my xQuery:&lt;BR /&gt;&amp;lt;headerValue&amp;gt;&lt;BR /&gt;{ $in.headers.foo }&lt;BR /&gt;&amp;lt;/headerValue&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does someone know what is the syntax ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-the-attribute-value-from-a-header-in-camel-xquery/m-p/2341474#M109425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: extracting the attribute value from a header in camel xquery</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-the-attribute-value-from-a-header-in-camel-xquery/m-p/2341475#M109426</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for your time!&lt;/P&gt;
&lt;P&gt;We have redirected your issue to our ESB experts and then come back to you as soon as we can.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 04:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-the-attribute-value-from-a-header-in-camel-xquery/m-p/2341475#M109426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T04:52:59Z</dc:date>
    </item>
  </channel>
</rss>

