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

Re: standard components edits

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Mon, 16 Apr 2007 15:29:18 +0100
To: "Alex Milowski" <alex@milowski.org>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bzm58ie9t.fsf@hildegard.inf.ed.ac.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alex Milowski writes:

> On 4/16/07, Henry S. Thompson <ht@xxxxx> wrote:

>> <p:xinclude>
> . . .
> Nice.  That trick gets written down! :)

Thanks!

>> Should we provide a micro-component for this case, e.g.
>>
>> <p:wrapped-text href="[anyURI]" wrapper="[QName]"/>
>>
>> ?

> Since you can do this with xinclude, I think this is  OK to leave alone.

>> We could then say that compact syntax for RelaxNG or XQuery query docs
>> must be wrapped in specified elements, and then their secondary inputs
>> are to a limited extent polymorphic, distinguished by their document
>> elements, as between full/compact for Relax-NG and XQueryX/text for
>> XQuery.

> Right now we're defining a step-vocabulary element for XQuery.

And for Relax-NG, right.

> I think we could define an extra step vocabulary element for text
> wrappers and then steps like relax can use that.

You appear to be contradicting yourself -- I suggested defining a
micro-component to wrap text above, and you said not needed. . .

> Unfortunately, XQuery isn't all text but may not have a document element
> (e.g. the "declare namepace f="...";" in the prolog).  As such, that element
> needs to be different.

I don't see why.  The whole point of parse="text" is that it gives you
_exactly_ what you want as the text content of the document element,
for better or worse, with markup escaped and everything.  So why is a
special case needed for XQuery?

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGI4g+kjnJixAXWBoRAgtHAJwJuBMgCBzHh0mc474M7oPfbAMHUwCfaPHt
YEP4ItsiEUmFOc8MxReT728=
=knyY
-----END PGP SIGNATURE-----
Received on Monday, 16 April 2007 14:29:32 GMT

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