RE: XProc is extensible. How so?

> "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 UTC