9 messages in org.w3.xproc-devRe: calabash: p:wrap step
FromSent OnAttachments
James FullerNov 18, 2008 12:50 pm 
Norman WalshNov 18, 2008 12:53 pm 
Henry S. ThompsonNov 19, 2008 3:50 am 
mozerNov 19, 2008 5:10 am 
mozerNov 19, 2008 5:14 am 
Norman WalshNov 19, 2008 5:44 am 
David A. LeeNov 22, 2008 6:38 am 
Jeni TennisonNov 22, 2008 7:45 am 
David A. LeeNov 22, 2008 8:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: calabash: p:wrap stepActions...
From:Norman Walsh (nd@nwalsh.com)
Date:Nov 19, 2008 5:44:41 am
List:org.w3.xproc-dev

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