[sc34wg3] TMQL and XML

Lars Heuer heuer at semagia.com
Thu Oct 25 11:27:16 EDT 2007


Hi all,

I wonder if the "XML allowed anywhere" policy (simplification) of TMQL
introduces an unnecessary complexity.

a) If I understand the current draft correctly, the following queries are
   valid:

   i) select $x from <html>
                        <head>
                           <title>XML</title>
                        </head>
                        <body>
                          <p>A paragraph</p>
                        </body>
                      </html>


   ii) for $x in <xml><here/></xml>
       return $x

   Question: Do we need that? Is it possible to limit the XML stuff to
   the "return" clause of the FLWOR clauses?


b) In XQuery it is not allowed to use

      [...]
      return <{$x}>bla bla<{$x}/>

   Embedded expressions are not allowed for XML elements, the user has
   to use specialised constructors.

   Question: Do we need such a feature and has the XQuery group maybe
   good reasons to disallow such constructs?
   

Best regards,
Lars
-- 
http://www.semagia.com



More information about the sc34wg3 mailing list