Subject:Adding embedded functions Author:Minollo I. Date:14 May 2008 02:04 PM
>The query I am using:
>/vendorFile/fileList/file/fullPath[ends-with(.,'skp')]
>
>I would like to return the value of true or false and the fullPath
>and convert the lookup to lower-case. is this possible?
I'm not sure I understand your question.
You expression above will return all the fullPath elements whose value ends with "skp". Maybe you are trying to do something like...
<result> {
for $fullPath in /vendorFile/fileList/file/fullPath
return
<item>
{$fullPath}
<matches> {
if (ends-with(lower-case($fullPath), "skp")) then
"yes"
else
"no"
} </matches>
</item>
} </result>