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:mozer (xmli@gmail.com)
Date:Nov 19, 2008 5:14:47 am
List:org.w3.xproc-dev

Well, your example <p:wrap match="/node()" wrapper="some_element"/>

will give an error with this input

<?xml version="1.0"?> <?my PI?> <my-root/> <!-- mycomment -->

(because we will have 3 roots)

Xmlizer

On Wed, Nov 19, 2008 at 12:50 PM, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:

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

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? Strictly speaking,

<p:wrap match="/" wrapper="f"/>

should wrap the document node itself, which ain't right, right?

ht - -- Henry S. Thompson, School of Informatics, University of Edinburgh Half-time member of W3C Team 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 651-1426, 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)

iD8DBQFJI/2ekjnJixAXWBoRAukSAJ43O4+xOhQPro2LyDv+Pk9LlxMvHgCfU/JT ErH4DvMP7vDAzLW3vnDTXY4= =1/gM -----END PGP SIGNATURE-----