On Wed, Feb 27, 2008 at 2:41 AM, Wei, Alice J. &lt;<a href="mailto:ajwei@indiana.edu">ajwei@indiana.edu</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Kevin:<br>
<br>
 &nbsp; Thanks, this does bring some help to what I am trying to work on now. To certain extent, I have this feeling that the syntax between XQuery functions and XQuery user-defined functions are somewhat different.<br>
</blockquote><div><br>I&#39;m not sure I understand this statement.&nbsp; It seems that you&#39;re implying that the built-in functions and user function behave differently?&nbsp; Or are used differently?&nbsp; I don&#39;t think this the case.&nbsp; I could for, example, write my own function that behaved like the built-in distinct-values function.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
 &nbsp;Your code does point out quite a few different options and the variety of errors I could be getting when I am not doing them correctly. It does do the trick.<br>
<div class="Ih2E3d"></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
Thanks for your help.<br>
</div></blockquote><div><br><br>You&#39;re welcome.&nbsp; I&#39;m glad it helped.&nbsp; I&#39;ve learned a great deal about XQuery myself in the last couple of days (by trying to help someone else).<br>&nbsp;
<br>- Kevin<br><br></div></div>