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-----