W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2009

Re: p:xquery and c:data

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 18 Feb 2009 11:14:57 +0100
Message-ID: <ebaca5bf0902180214r3d9ca0ebh689985993d807cdd@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: public-xml-processing-model-comments@w3.org
2009/2/18 ? wrote:

  Hi,

> The text in 7.2.9 (p:xquery) says this about the document on the 'query'
> port is handled:

> "If the document root element is c:data or has a c:content-type
> attribute that specifies a text content type or a media type that the
> implementation recognizes, then the text descendants of this element are
> considered the query."

  Unfortunately, I can't provide you with an answer, but I have
another related question ;-)

  The above paragraph tells that the processor has to use the text
value of the query document.  I know XQuery is not well-formed XML,
and that has been debated before.  But can't we use content-type to
enable one to use XML as the query?  Something like:

    <!-- no @content-type, or text/plain -->
    <c:data>
       &lt;result&gt; {
          ...
       }
       &lt;/result&gt;
    </c:data>

could then be written as:

    <c:data content-type="application/xml">
       <result> {
          ...
       }
       </result>
    </c:data>

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Wednesday, 18 February 2009 10:15:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 18 February 2009 10:15:45 GMT