'select' on p:xpath-context ? (was Re: Updated draft: 27 Jan 2007)

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

Norman Walsh writes:

> 3. I've updated the description of choose/when, replacing the "source"
> input with an anonymous binding called "xpath-context".

p:input is the other thing that wraps bindings, and it allows a
'select' attribute.  I could go either way on whether to allow it on
xpath-context, since the 'test' attribute can do the necessary work,
but I guess I like the look of something such as

 <p:choose>

  <p:xpath-context select="//soap:body/*">
   . . .
  </p:xpath-context>
 
  <p:when test="@switch='1'>
   . . .
  </p:when>
 
  <p:when test="@switch='2'>
   . . .
  </p:when>
 
  <p:when test="@switch='3'>
   . . .
  </p:when>

  <p:otherwise>
   . . .
  </p:otherwise>
 </p:choose>

What do people think?

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, 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)

iD8DBQFFwcoHkjnJixAXWBoRAhDmAJ99pUxPyDa3qN2gG3PD1cpeSx3BDACfTZJK
TqKpTYuQRpH1dKhBhiqzMV0=
=kH3n
-----END PGP SIGNATURE-----

Received on Thursday, 1 February 2007 11:08:10 UTC