Skip to content

Commit

Permalink
Merge pull request #923 from xml-project/step-available
Browse files Browse the repository at this point in the history
Attempt to fix p:step-available
  • Loading branch information
xml-project committed Dec 8, 2019
2 parents 3925f0e + d43add0 commit a2c8112
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions xproc/src/main/xml/specification.xml
Expand Up @@ -1566,7 +1566,7 @@ be returned.</para>
<section xml:id="f.step-available">
<title>Step Available</title>
<para>The <function>p:step-available</function> function reports whether or not a particular
type of step is understood by the processor.</para>
type of step is understood by the processor and in scope where the function is called.</para>

<methodsynopsis>
<type>xs:boolean</type>
Expand All @@ -1582,11 +1582,10 @@ scope for the expression. <error code="D0015">It is a
<glossterm>dynamic error</glossterm> if a QName is specified and it cannot be
resolved with the in-scope namespace declarations.</error> The
<function>p:step-available</function> function returns true if and
only if the processor knows how to evaluate steps of the specified
type.</para>
only if the processor knows how to evaluate a step of the specified
type where the function is called.</para>

<para><impl>The value of the <function>p:step-available</function> function during
static analysis is <glossterm>implementation-dependent</glossterm>.</impl></para>
<para>The <function>p:step-available</function> behaves normally during static analysis.</para>
</section>

<section xml:id="f.iteration-position">
Expand Down Expand Up @@ -5813,7 +5812,9 @@ the code which implements steps of this type.</para>

<para>It is not an error for a pipeline to include declarations for
steps that a particular processor does not know how to implement. It
is, of course, an error to attempt to evaluate such steps.</para>
is, of course, an error to attempt to evaluate such steps.
The function <function>p:step-available</function> will return <literal>false</literal>
when called with the type name of such a step.</para>
</section>
</section>

Expand Down

0 comments on commit a2c8112

Please sign in to comment.