Ravi -
You are probably running into the problem where the < and > need to be
converted to < and > when used inside a trigger. Can you try that?
__________________________________________________________________
Riley Howard
On Friday, December 6, 2002, at 10:13 AM, Ravi Pandya wrote:
> I tried this and ran into a problem. The sample code you gave runs
> fine if I paste it into the XQuery test channel. However, if I paste
> the exact same code into a trigger in my Channel.xml file, it does not
> run. There are no error messages, and no logging events are generated.
> I know the trigger is being run, because it runs if I replace the
> sample code with a trivial
> let $name := "Joe Smith"
> return $name
> Any idea what is going on here? I'm guessing it has to do the
> Channel.xml file being parsed as XML before it is handed to the XQuery
> processor. Thanks,
>
> Ravi
>
> On Thursday, December 5, 2002, at 03:47 PM, Riley Howard wrote:
>
>> From another engineer on the team:
>>
>>
>> We support some XML construct operation in XQuery.
>> All Element text and attribute values must be an enclosed expression
>> (inside curly braces '{' & '}' ).
>> XML is being generated so all element smust have an end tag.
>> An XML tree is being generated to get the tree as a string, Sherlock
>> supports
>> a "source" function that returns a XML tree as a string.
>> Here is are two simple examples that can be run in the XQuery channel:
>>
>> let $url := "http://www.apple.com"
>> let $title := "apple computer"
>> let $xml :=
>> <font size = {3} face = {"Monaco"}>
>> <a href = { $url }>
>> { $title } </a>
>> </font>
>> return source($xml)
>>
>>
>>
>> let $seq := ("a", "b", "c", "d", "e", "f", "g")
>> let $xml :=
>> <table>
>> {
>> for $item in to (1, count($seq)) return
>> <tr>
>> <td> { concat("Value ", $item) } </td>
>> <td> { item-at($seq, $item) } </td>
>> </tr>
>> }
>> </table>
>> return $xml/source(.)
>>
>> __________________________________________________________________
>> Riley Howard
>>
>>
>>
>> On Thursday, December 5, 2002, at 12:42 PM, Ravi Pandya wrote:
>>
>>> I was looking forward to using the XQuery constructed element
>>> notation
>>> to build HTML query results in Sherlock, but it looks like neither
>>> form listed in the 1.0 spec works (see
>>> http://www.w3.org/TR/xquery/#id-constructors).
>>>
>>> Is there a variant of this that works in Sherlock? Or do I just have
>>> to build strings? Thanks,
>>>
>>> Ravi
>>> ----------------------------------------
>>> Ravi Pandya
>>> IECommerce Inc
>>> 9249 NE 14th Street
>>> Bellevue, WA 98004
>>> Tel 425 688 9123
>>> Fax 425 699 0005
>>> www.iecommerce.com
>>> email@hidden
>>> _______________________________________________
>>> sherlock-channel-development mailing list |
>>> email@hidden
>>> Help/Unsubscribe/Archives:
>>> http://www.lists.apple.com/mailman/listinfo/sherlock-channel-
>>> development
>>> Do not post admin requests to the list. They will be ignored.
>> _______________________________________________
>> sherlock-channel-development mailing list |
>> email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/sherlock-channel-
>> development
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> sherlock-channel-development mailing list |
> email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/sherlock-channel-
> development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
sherlock-channel-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development
Do not post admin requests to the list. They will be ignored.