Accessing parameters

  Hi,

  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"/>
    </p:add-attribute>

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

  Any idea?

  Regards,

-- 
Florent Georges
http://fgeorges.org/

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