W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2007

Re: standard components edits

From: Alex Milowski <alex@milowski.org>
Date: Mon, 16 Apr 2007 09:44:34 -0700
Message-ID: <28d56ece0704160944u1c48da3qc52e6a517dbad6b6@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
On 4/16/07, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alex Milowski writes:
>
> > The specification right now says that:
> >
> > <query>
> >   declare namespace atom="http://www.w3.org/2005/Atom";
> >   /atom:feed/atom:entry
> > </query>
> >
> > will be treated as:
> >
> >   declare namespace atom="http://www.w3.org/2005/Atom";
> >   /atom:feed/atom:entry
> >
> > I have it on my list to move that into a namespace.  Now, for XQuery,
> > the following is also legal:
> >
> > <query>
> >   declare namespace atom="http://www.w3.org/2005/Atom";
> >   <atom:feed>{/atom:feed/atom:entry}</atom:feed>
> > </query>
>
> That's true of our component as documented, is what you mean, right?
> Not XQuery itself.



Yes.  XQuery has no  solution for this right now.

> and so the query element must be able to contain elements.  This isn't
> > the case for RelaxNG's compact syntax.  If we provided an input element
> > for that step, it would have xs:string content.
>
> I think that's the wrong way to go.  I'd much prefer to handle all
> this consistently, and say it has to be
>
> <query><![CDATA[
>    declare namespace atom="http://www.w3.org/2005/Atom";
>    <atom:feed>{/atom:feed/atom:entry}</atom:feed>
> ]]></query>



>From experience with XQuery DB's like eXist (which do something like the
above), this is very error prone.  There
is no reason to do this for XQuery.

This is just like the RSS description element and I don't want to be party
to creating another element out there in the universe that contains escaped
XML! :)


Then the xinclude trick will work for it as well.



But it makes the XQuery step much less useable.


-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Monday, 16 April 2007 16:44:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:50 GMT