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

Re: possible bug in p:iteration select

From: Josh Matthews <joshmatthews@gmail.com>
Date: Tue, 30 Sep 2008 16:41:39 -0400
Message-ID: <ffee23380809301341t1cdafc60v153cf6d6c6159b40@mail.gmail.com>
To: "Jeni Tennison" <jeni@jenitennison.com>
Cc: "XProc Dev" <xproc-dev@w3.org>
On Tue, Sep 30, 2008 at 4:12 PM, Jeni Tennison <jeni@jenitennison.com>wrote:

>
> If you had a known URI, you'd do:
>
>  <p:load>
>    <p:option name="href" select="'/path/to/file.xml'" />
>  </p:load>
>

Shouldn't this (and the original example) use <p:with-option> - I thought
<p:option> was for option declaration, not invocation?

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.

Cheers,
Josh Matthews
Received on Tuesday, 30 September 2008 21:19:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 30 September 2008 21:19:04 GMT