W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2008

instance name visible within a custom step?

From: James Sulak <jsulak@gmail.com>
Date: Fri, 12 Dec 2008 08:40:40 -0600
Message-ID: <7cb78b3b0812120640i6b7c1e96t30c98737a9f39558@mail.gmail.com>
To: "XProc Dev" <xproc-dev@w3.org>

Hello all,

If I declare a new step type:

<p:pipeline type="u:debug-output">
  <p:output port="result">
     <p:pipe step="ident" port="result" />
  <p:option name="step-name" required="true" />
  <p:identity name="ident" />
     <p:with-option name="href" select="concat($step-name, '.xml')" />

And then create an instance of it in another pipeline:

<p:pipeline name="import-test" >
  <p:import href="utils.xpl" />
  <u:debug-output name="instance" step-name="instance" />

Is the name of a step instance (in this case, the name "instance")
available inside the step as a variable or a function? I'd like to be
able to access the name of the step instance instead of having to pass
it in as a separate option.


Received on Friday, 12 December 2008 14:41:15 UTC

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