Re: possible bug in p:iteration select

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 UTC