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

Re: calabash: p:wrap step

From: mozer <xmlizer@gmail.com>
Date: Wed, 19 Nov 2008 14:15:10 +0100
Message-ID: <21d9ade60811190515y312a0c0bq728d8b944b9b3ba9@mail.gmail.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>

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-----
>
>
Received on Wednesday, 19 November 2008 13:15:45 GMT

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