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

Accessing parameters

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 27 Sep 2010 23:02:50 +0100
Message-ID: <AANLkTimQfL6pb3rf5sO8L=-MvXDD80yrtAGaT1ThoFh1@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>

  I have a parameter port on my pipeline, which contains a
parameter named P.  I'd like to add an attribute to an element by
using p:add-attribute, and the value of the attribute must be the
value of the param P.  Something like:

    <p:input name="source"/>
    <p:input name="params" kind="parameter"/>

    <p:add-attribute match="elem" attribute-name="attr">
       <p:with-option name="attribute-value" select="$params/P"/>

  but it seems I missed a fundamental difference between accessing
options and parameters.

  Any idea?


Florent Georges
Received on Monday, 27 September 2010 22:03:43 UTC

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