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:10:08 -0400
Message-ID: <ffee23380809301310j66626141nd1c948f86efec0c7@mail.gmail.com>
To: "James Garriss" <james@garriss.org>
Cc: "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>
Hi James,

On Tue, Sep 30, 2008 at 4:00 PM, James Garriss <james@garriss.org> wrote:

>  Ok, I see the idea:  to load documents, I need to use p:load.  But how
> you used p:load left me confused.  This code doesn't seem right:
>
>     <p:load>
>       <p:option name="href" select="/c:file/@name"/>
>     </p:load>
>
> The href is a URI.  //c:file/@name is an XPath expression, attempting to
> read the value of the "name" attribute.  Aren't we mixing apples and
> oranges?
>

Looks to me like the same usage of the select attribute as in XSLT: href is
the parameter being passed to the load, and select provides the value by
evaluating the XPath expression.

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:11 GMT