W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2009

RE: XProc is extensible. How so?

From: <Toman_Vojtech@emc.com>
Date: Tue, 28 Apr 2009 02:32:27 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870F646062@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
> "Costello, Roger L." <costello@mitre.org> writes:
> > Does that mean a pipeline may run on one XProc processor 
> but not another?
> 
> Yes. A pipeline that uses extension steps may not run on another
> processor.

Even if the pipeline contains extension steps unsupported by some
processors, it may still be possible to run the pipeline with these
processors. XProc contains a built-in XPath function p:step-available,
which allows you to do things like:

<p:choose>
  <p:when test="p:step-available('acme:do-some-magic')">
    <acme:do-some-magic/>
  </p:when>
  <p:otherwise>
    ... Do the magic in some other way, or fail, or....
  </p:otherwise>
</p:choose>

Regards,
Vojtech
Received on Tuesday, 28 April 2009 06:33:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 April 2009 06:33:26 GMT