W3C

XProc Error Namespace


1 Introduction

This document describes the names that are defined in the http://www.w3.org/ns/xproc-error namespace at the time of publication. The W3C reserves the right to define additional names in this namespace in the future. Only the XML Processing Model Working Group or its successors may amend this namespace.

2 Names in the XProc Error Namespace

The following names are defined in the XProc: An XML Pipeline Language specification (May, 2010 version). For updated information, please refer to the latest version of the specification.

err:C0002
It is a dynamic error if the value starts with the string “--”.
err:C0003
It is a dynamic error if a username or password is specified without specifying an auth-method, if the requested auth-method isn't supported, or the authentication challenge contains an authentication method that isn't supported.
err:C0004
It is a dynamic error if the status-only attribute has the value true and the detailed attribute does not have the value true.
err:C0005
It is a dynamic error if the request contains a c:body or c:multipart but the method does not allow for an entity body being sent with the request.
err:C0006
It is a dynamic error if the method is not specified on a c:request.
err:C0010
It is a dynamic error if an encoding of base64 is specified and the character set is not specified or if the specified character set is not supported by the implementation.
err:C0012
It is a dynamic error if the contents of the directory path are not available to the step due to access restrictions in the environment in which the pipeline is run.
err:C0013
It is a dynamic error if the pattern matches a processing instruction and the new name has a non-null namespace.
err:C0014
It is a dynamic error if the XML namespace (http://www.w3.org/XML/1998/namespace) or the XMLNS namespace (http://www.w3.org/2000/xmlns/) is the value of either the from option or the to option.
err:C0017
It is a dynamic error if the absolute path does not identify a directory.
err:C0019
It is a dynamic error if the documents are not equal, and the value of the fail-if-not-equal option is true.
err:C0020
It is a dynamic error if the the user specifies a value or values that are inconsistent with each other or with the requirements of the step or protocol.
err:C0022
it is a dynamic error if the content of the c:body element does not consist of exactly one element, optionally preceded and/or followed by any number of processing instructions, comments or whitespace characters
err:C0023
It is a dynamic error if a select expression or match pattern returns a node type that is not allowed by the step.
err:C0025
It is a dynamic error if the match pattern matches anything other than an element node and the value of the position option is “first-child” or “last-child”.
err:C0027
It is a dynamic error if the document is not valid or the step doesn't support DTD validation.
err:C0028
it is a dynamic error if the content of the c:body element does not consist entirely of characters
err:C0029
It is a dynamic error if an XInclude error occurs during processing.
err:C0030
It is a dynamic error if the override-content-type value cannot be used (e.g. text/plain to override image/png).
err:C0033
It is a dynamic error if the command cannot be run.
err:C0034
It is a dynamic error if the current working directory cannot be changed to the value of the cwd option.
err:C0035
It is a dynamic error to specify both result-is-xml and wrap-result-lines.
err:C0036
It is a dynamic error if the requested hash algorithm is not one that the processor understands or if the value or parameters are not appropriate for that algorithm.
err:C0037
It is a dynamic error if the value provided is not a properly x-www-form-urlencoded value.
err:C0038
It is a dynamic error if the specified version of XSLT is not available.
err:C0039
It is a dynamic error if a sequence of documents (including an empty sequence) is provided to an XSLT 1.0 step.
err:C0040
It is a dynamic error if the document element of the document that arrives on the source port is not c:request.
err:C0050
It is a dynamic error if the URI scheme is not supported or the step cannot store to the specified location.
err:C0051
It is a dynamic error if the content-type specified is not supported by the implementation.
err:C0052
It is a dynamic error if the encoding specified is not supported by the implementation.
err:C0053
It is a dynamic error if the assert-valid option is true and the input document is not valid.
err:C0054
It is a dynamic error if the assert-valid option is true and any Schematron assertions fail.
err:C0055
It is a dynamic error if the implementation does not support the specified mode.
err:C0056
It is a dynamic error if the specified initial mode or named template cannot be applied to the specified stylesheet.
err:C0057
It is a dynamic error if the sequence that results from evaluating the XQuery contains items other than documents and elements.
err:C0058
It is a dynamic error if the all and relative options are bothtrue.
err:C0059
It is a dynamic error if the QName value in the attribute-name option uses the prefix “xmlns” or any other prefix that resolves to the namespace name “http://www.w3.org/2000/xmlns/”.
err:C0060
It is a dynamic error if the processor does not support the specified version of the UUID algorithm.
err:C0061
It is a dynamic error if the name of any encoded parameter name is not a valid xs:NCName.
err:C0062
It is a dynamic error if the match option matches a namespace node.
err:C0063
It is a dynamic error if the path-separator option is specified and is not exactly one character long.
err:C0064
It is a dynamic error if the exit code from the command is greater than the specified failure-threshold value.
err:C0066
It is a dynamic error if the arg-separator option is specified and is not exactly one character long.
err:D0001
It is a dynamic error if a non-XML resource is produced on a step output or arrives on a step input.
err:D0003
It is a dynamic error if the viewport source does not provide exactly one document.
err:D0004
It is a dynamic error if no subpipeline is selected by the p:choose and no default is provided.
err:D0005
It is a dynamic error if more than one document appears on the connection for the xpath-context.
err:D0006
If sequence is not specified, or has the value false, then it is a dynamic error unless exactly one document appears on the declared port.
err:D0007
If sequence is not specified on p:output, or has the value false, then it is a dynamic error if the step does not produce exactly one document on the declared port.
err:D0008
It is a dynamic error if a document sequence appears where a document to be used as the context node is expected.
err:D0009
It is a dynamic error if the element attribute on p:namespaces is specified and it does not identify a single element node.
err:D0010
It is a dynamic error if the match expression on p:viewport does not match an element or document.
err:D0011
It is a dynamic error if the resource referenced by a p:document element does not exist, cannot be accessed, or is not a well-formed XML document.
err:D0012
It is a dynamic error if any attempt is made to dereference a URI where the scheme of the URI reference is not supported.
err:D0013
It is a dynamic error if the specified namespace bindings are inconsistent; that is, if the same prefix is bound to two different namespace names.
err:D0014
It is a dynamic error for any unqualified attribute names other than “name”, “namespace”, or “value” to appear on a c:param element.
err:D0015
It is a dynamic error if the specified QName cannot be resolved with the in-scope namespace declarations.
err:D0016
It is a dynamic error if the select expression on a p:input returns atomic values or anything other than element or document nodes (or an empty sequence).
err:D0017
It is a dynamic error if the running pipeline attempts to invoke a step which the processor does not know how to perform.
err:D0018
It is a dynamic error if the parameter list contains any elements other than c:param.
err:D0019
It is a dynamic error if any option value does not satisfy the type required for that option.
err:D0020
It is a dynamic error if the combination of serialization options specified or defaulted is not allowed.
err:D0021
It is a dynamic error for a pipeline to attempt to access a resource for which it has insufficient privileges or perform a step which is forbidden.
err:D0022
It is a dynamic error if a processor that does not support PSVI annotations attempts to invoke a step which asserts that they are required.
err:D0023
It is a dynamic error if an XPath expression is encountered which cannot be evaluated (because it is syntactically incorrect, contains references to unbound variables or unknown functions, or for any other reason).
err:D0024
It is a dynamic error if a 2.0 processor encounters an XPath 1.0 expression and it does not support XPath 1.0 compatibility mode.
err:D0025
It is a dynamic error if the namespace attribute is specified, the name contains a colon, and the specified namespace is not the same as the in-scope namespace binding for the specified prefix.
err:D0026
It is a dynamic error if the select expression makes reference to the context node, size, or position when the context item is undefined.
err:D0027
It is a dynamic error if the processor encounters an xpath-version that it does not support.
err:D0028
It is a dynamic error if any attribute value does not satisfy the type required for that attribute.
err:D0029
It is a dynamic error if the document referenced by a p:data element does not exist, cannot be accessed, or cannot be encoded as specified.
err:D0030
It is a dynamic error if a step is unable or incapable of performing its function.
err:D0031
It is a dynamic error to use the XProc namespace in the name of a parameter.
err:D0033
It is a dynamic error if the name specified is not the name of an in-scope option or variable.
err:D0034
It is a dynamic error to specify a new namespace or prefix if the lexical value of the specified name contains a colon (or if no wrapper is explicitly specified).
err:S0001
It is a static error if there are any loops in the connections between steps: no step can be connected to itself nor can there be any sequence of connections through other steps that leads back to itself.
err:S0002
All steps in the same scope must have unique names: it is a static error if two steps with the same name appear in the same scope.
err:S0003
It is a static error if any declared input is not connected.
err:S0004
It is a static error if an option or variable declaration duplicates the name of any other option or variable in the same environment.
err:S0005
It is a static error if the primary output port of any step is not connected.
err:S0006
It is a static error if the primary output port has no explicit connection and the last step in the subpipeline does not have a primary output port.
err:S0007
It is a static error if two subpipelines in a p:choose declare different outputs.
err:S0008
It is a static error if any element in the XProc namespace has attributes not defined by this specification unless they are extension attributes.
err:S0009
It is a static error if the p:group and p:catch subpipelines declare different outputs.
err:S0010
It is a static error if a pipeline contains a step whose specified inputs, outputs, and options do not match the signature for steps of that type.
err:S0011
It is a static error to identify two ports with the same name on the same step.
err:S0014
It is a static error to identify more than one output port as primary.
err:S0015
It is a static error if a compound step has no contained steps.
err:S0017
It is a static error to specify that an option is both requiredand has a default value.
err:S0018
If an option is required, it is a static error to invoke the step without specifying a value for that option.
err:S0019
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
err:S0020
It is a static error if the binding attribute on p:namespaces is specified and its value is not the name of an in-scope binding.
err:S0022
In all cases except the p:output of a compound step, it is a static error if the port identified by a p:pipe is not in the readable ports of the step that contains the p:pipe.
err:S0024
It is a static error if the content of the p:inline element does not consist of exactly one element, optionally preceded and/or followed by any number of processing instructions, comments or whitespace characters.
err:S0025
It is a static error if the expanded-QName value of the type attribute is in no namespace or in the XProc namespace.
err:S0026
It is a static error if the port specified on the p:log is not the name of an output port on the step in which it appears or if more than one p:log element is applied to the same port.
err:S0027
It is a static error if an option is specified with both the shortcut form and the long form.
err:S0028
It is a static error to declare an option or variable in the XProc namespace.
err:S0029
It is a static error to specify a connection for a p:output inside a p:declare-step for an atomic step.
err:S0030
It is a static error to specify that more than one input port is the primary.
err:S0031
It is a static error to use an option on an atomic step that is not declared on steps of that type.
err:S0032
It is a static error if no connection is provided and the default readable port is undefined.
err:S0033
It is a static error to specify any kind of input other than “document” or “parameter”.
err:S0034
It is a static error if the specified port is not a parameter input port or if no port is specified and the step does not have a primary parameter input port.
err:S0035
It is a static error if the declaration of a parameter input port contains a connection; parameter input port declarations must be empty.
err:S0036
All the step types in a pipeline or library must have unique names: it is a static error if any step type name is built-in and/or declared or defined more than once in the same scope.
err:S0037
It is a static error if any step directly contains text nodes that do not consist entirely of whitespace.
err:S0038
It is a static error if any required attribute is not provided.
err:S0039
It is a static error if the port specified on the p:serialization is not the name of an output port on the pipeline in which it appears or if more than one p:serialization element is applied to the same port.
err:S0040
It is a static error to specify any value other than true.
err:S0041
It is a static error to specify both binding and element on the same p:namespaces element.
err:S0042
It is a static error to attempt to provide a connection for an input port on the declaration of an atomic step.
err:S0044
It is a static error if any element in the XProc namespace or any step has element children other than those specified for it by this specification. In particular, the presence of atomic steps for which there is no visible declaration may raise this error.
err:S0048
It is a static error to use a declared step as a compound step.
err:S0051
It is a static error if the except-prefixes attribute on p:namespaces does not contain a list of tokens or if any of those tokens is not a prefix bound to a namespace in the in-scope namespaces of the p:namespaces element.
err:S0052
It is a static error if the URI of a p:import cannot be retrieved or if, once retrieved, it does not point to a p:library, p:declare-step, or p:pipeline.
err:S0053
It is a static error to import a single pipeline if that pipeline does not have a type.
err:S0055
It is a static error if a primary parameter input port is unconnected and the pipeline that contains the step has no primary parameter input port unless at least one explicit p:with-param is provided for that port.
err:S0057
It is a static error if the exclude-inline-prefixes attribute does not contain a list of tokens or if any of those tokens (except #all or #default) is not a prefix bound to a namespace in the in-scope namespaces of the element on which it occurs.
err:S0058
It is a static error if the value #default is used within the exclude-inline-prefixes attribute and there is no default namespace in scope.
err:S0059
It is a static error if the pipeline element is not p:pipeline, p:declare-step, or p:library.
err:S0060
It is a static error if the processor encounters an explicit request for a previous version of the language and it is unable to process the pipeline using those semantics.
err:S0061
It is a static error if a use-when expression refers to the context or attempts to refer to any documents or collections.
err:S0062
It is a static error if a required version attribute is not present.
err:S0063
It is a static error if the value of the version attribute is not a xs:decimal.

The following names are defined in the Document Templating Steps for XProc note (January, 2011 version). For updated information, please refer to the latest version of the note.

err:C0067
It is a dynamic error to encounter a single closing curly brace “}” that is not immediately followed by another closing curly brace.
err:C0068
It is a dynamic error if more than one document appears on the source port.
err:D0026
It is a dynamic error if any XPath expression makes reference to the context node, size, or position when the context item is undefined.