- From: mozer <xmlizer@gmail.com>
- Date: Wed, 1 Oct 2008 09:43:14 +0200
- To: "Josh Matthews" <joshmatthews@gmail.com>
- Cc: "Jeni Tennison" <jeni@jenitennison.com>, "XProc Dev" <xproc-dev@w3.org>
You cannot do this But you can do that <p:load> <p:with-option name="href" select="string(.)"> <p:inline><a>/path/to/file.xml</a></p:inline> </p:with-option> </p:load> Regards, Xmlizer On Tue, Sep 30, 2008 at 10:41 PM, Josh Matthews <joshmatthews@gmail.com> wrote: > 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 Wednesday, 1 October 2008 07:43:50 UTC