W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2008

Re: calabash: p:wrap step

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 19 Nov 2008 08:45:04 -0500
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2ej17akyn.fsf@nwalsh.com>
ht@inf.ed.ac.uk (Henry S. Thompson) writes:
> Norman Walsh writes:
>> Perhaps we should allow the match pattern to match document nodes as
>> well so that you can wrap all the leading PIs, comments, and
>> whitespace.
>
> I'm not sure.  There's an easy workaround:
>
>  <p:wrap match="/node()" . . .
>
> Isn't that sufficient?

No, that'll fail as Mohamed pointed out, however, I think this will work:

  <p:wrap match="/node()" group-adjacent="true()"/>

> Strictly speaking,
>
>    <p:wrap match="/" wrapper="f"/>
>
> should wrap the document node itself, which ain't right, right?

I suppose. We'd have to make that a special case, I guess,
technically.

It occurs to me that if you want to wrap a whole document, you can use
p:wrap-sequence, too.

So there's nothing that we *need* to do here, it's only a question of
whether we think this is worth doing to violate the users expectation
of least surprise.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Some books are undeservedly forgotten,
http://nwalsh.com/            | none are undeservedly remembered.--W.
                              | H. Auden

Received on Wednesday, 19 November 2008 13:45:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 19 November 2008 13:45:50 GMT