W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2012

Re: XPipeline.setOption and value type

From: mozer <xmlizer@gmail.com>
Date: Sun, 20 May 2012 12:57:56 +0200
Message-ID: <CAKdwC_OX963XQ3-f=OPFge=rKrSP=JCP9VXX2iGLKnMq80CtKA@mail.gmail.com>
To: Florent Georges <fgeorges@fgeorges.org>
Cc: XProc Dev <xproc-dev@w3.org>

RuntimeValue is needed here for a very good reason : if the String you are
providing is in fact a QName, you also need to provide the namespaces
binding to allow it's handling

If you don't need special handling, then just provide a dummy node, and it
should work

Hope this helps


2012/4/26 Florent Georges <fgeorges@fgeorges.org>

>  Hi,
>  I have to set an option on a pipeline before executing it from
> Java.  So on my XPipeline object, I want to call setOption.  But this
> method takes a RuntimeValue, and we need a node to construct a new
> runtime value (this is not clear what's its role, though).
>  What's this node required by the runtime value ctors?  As option
> values are strings, woudln't it be a good idea to have an overload of
> this method taking a string as the option value?
>  Regards,
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
Received on Sunday, 20 May 2012 10:58:25 UTC

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