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

p:parameters

From: Erlend Hamnaberg <erlend@escenic.com>
Date: Wed, 21 Jul 2010 09:49:18 +0200
To: xproc-dev <xproc-dev@w3.org>
Message-ID: <1279698558.14625.10.camel@ltp-erha>
Hello guys and gals.

I have a question about usage of p:parameters.

Is it possible to use the p:parameters in a p:variable?


<p:parameters name="params">
    <p:input port="parameters">
      <p:pipe step="run-pipe" port="par"/>
    </p:input>
  </p:parameters>

  <p:variable name="pipeline"
select="/c:param-set/c:param[@name='pipeline']/@value">
    <p:pipe step="params" port="result"/>
  </p:variable>

This causes this error.

SEVERE: it is a static error for a variable's document connection to
refer to the output port of any step in the surrounding container's
contained steps


but if I wrap the p:variable in a p:group, with the usages of that
variable, then it works.

Is there any other way of extracting a parameter from the p:parameters
pipe?


Thanks.

-- 
Erlend Hamnaberg
Systems developer                       + 47 908 26 329  (Mobile)
Escenic AS                              + 47 950 73 440  (switchboard)
Sommerogt. 13-15 Solli                  + 47 22 56 32 16 (fax)
N-0255 OSLO                             http://www.escenic.com/
NORWAY 
Received on Wednesday, 21 July 2010 07:49:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 July 2010 07:49:56 GMT