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

Re: possible bug in p:iteration select

From: Josh Matthews <joshmatthews@gmail.com>
Date: Tue, 30 Sep 2008 21:13:48 -0400
Message-ID: <ffee23380809301813y81c86b0yb1e0518b0bad1ca5@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: "XProc Dev" <xproc-dev@w3.org>
On Tue, Sep 30, 2008 at 6:00 PM, Norman Walsh <ndw@nwalsh.com> wrote:

> "Josh Matthews" <joshmatthews@gmail.com> writes:
> > I wonder if it'd be nice if you could also do this:
> >
> > <p:load>
> >    <p:with-option name="href">/path/to/file.xml</p:with-option>
> > </p:load>
> >
> > Not that it's a shorter shortcut than just passing the option directly
> via
> > an actual href attribute, but it would be nicely consistent with XSLT's
> > with-param, for those more familiar with that.
> Yes, but can't do that because you can also put p:pipe in there to
> specify the context and that would just get too confusing.

Do you mean confusing for users or confusing for
implementors? <p:with-option> can already take a <p:empty>, <p:pipe>,
<p:document>, <p:inline>, and <p:data>... I tend to think it's more
intuitive for users to have the flexibility to nest anything in an input
element and have it treated as input. It's probably very subjective, but I
personally find having to overload the select XPath expression with a quoted
string more confusing than being able to nest a text node.

Josh Matthews
Received on Wednesday, 1 October 2008 01:14:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:03 UTC