Re: Standard Component Descriptions

Alessandro Vernet wrote:

>> >> 2.1. [p:]xquery
>>
>> Some queries can be represented by single XML elements.  But to do
>> this for every XQuery, we'll need an input wrapper element that the
>> component understands.  That could also be a place to put
>> query controls.
> 
> What would you think of using the "Trivial Embedding of XQuery" of XQueryX?
> 
> http://www.w3.org/TR/xqueryx/#TrivialEmbedding

That would require escaping literal elements in the query.  I don't
see that as a good thing.

Personally, I don't understand why we can't have a standard
representation that wraps a query with XML but allows:

    * the "normal" query syntax (i.e. no expansion into
      xml)
    * literal elements just as literal elements!

It would be nice to have XQuery solve this for us.

I suppose we should have an XQuery component that understands XQueryX.
Then the trivial embedding would be perfectly legal.

You'd probably want to use an XML pipeline with an escape step
to manage the query input because replacing all the '<' and '&' will
be problematic.  :)

--Alex Milowski

Received on Wednesday, 22 November 2006 16:22:40 UTC