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.

2.1 XProc 2.0 Errors

err:XC0023

It is a dynamic error if a select expression or match pattern returns a node type that is not allowed by the step.

err:XD0004

It is a dynamic error if no subpipeline is selected by the p:choose and no default is provided.

err:XD0005

It is a dynamic error if more than one document appears on the connection for this input port.

err:XD0006

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:XD0007

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:XD0008

It is a dynamic error if a document sequence appears where a document to be used as the context node is expected.

err:XD0009

It is a dynamic error if the element attribute on p:namespaces is specified and it does not identify a single element node.

err:XD0010

It is a dynamic error if the match expression on p:viewport does not match an element or document.

err:XD0011

It is a dynamic error if the resource referenced by a p:document element does not exist, cannot be accessed, or has an XML content type and is not a well-formed XML document.

err:XD0012

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:XD0013

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:XD0014

It is a dynamic error for any unqualified attribute names other than “name”, “namespace”, or “value” to appear on a c:param element.

err:XD0015

It is a dynamic error if the specified QName cannot be resolved with the in-scope namespace declarations.

err:XD0016

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:XD0017

It is a dynamic error if the running pipeline attempts to invoke a step which the processor does not know how to perform.

err:XD0018

It is a dynamic error if the c:parameter-set parameter list contains any elements other than c:param.

err:XD0019

It is a dynamic error if any option value does not satisfy the type required for that option.

err:XD0020

It is a dynamic error if the combination of serialization options specified or defaulted is not allowed.

err:XD0021

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:XD0022

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:XD0025

It is a dynamic error if the namespace attribute is specified on c:param, the name contains a colon, and the specified namespace is not the same as the in-scope namespace binding for the specified prefix.

err:XD0026

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:XD0028

It is a dynamic error if any attribute value does not satisfy the type required for that attribute.

err:XD0030

It is a dynamic error if a step is unable or incapable of performing its function.

err:XD0033

It is a dynamic error if the name specified is not the name of an in-scope option or variable.

err:XD0034

On steps which allow independent specification of a namespace and a name, it is a dynamic error to specify a new namespace or prefix if the lexical value of the specified name contains a colon.

err:XD1000

It is a dynamic error if the element (or document element) passed to p:make-map is not a c:param-set element.

err:XD1001

It is a dynamic error if the computed value does not match the specified sequence type.

err:XD1002

It is a dynamic error if any of the c:param elements are invalid.

err:XD1003

If an input port provides a set of acceptable content types, it is a dynamic error if an input document that arrives on the port has a content type that does not match any content type in that set.

err:XD1004

It is a dynamic error if the select is used and any input document is not an XML document.

err:XD1005

It is a dynamic error if the body is not correctly encoded per the value of the encoding attribute.

err:XS0001

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:XS0002

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:XS0003

It is a static error if any declared input is not connected.

err:XS0004

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:XS0005

It is a static error if the primary output port of any step is not connected.

err:XS0006

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:XS0007

It is a static error if two subpipelines in a p:choose declare different outputs.

err:XS0008

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:XS0009

It is a static error if the p:group and p:catch subpipelines declare different outputs.

err:XS0010

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:XS0011

It is a static error to identify two ports with the same name on the same step.

err:XS0014

It is a static error to identify more than one output port as primary.

err:XS0015

It is a static error if a compound step has no contained steps.

err:XS0017

It is a static error to specify that an option is both requiredand has a default value.

err:XS0018

If an option is required, it is a static error to invoke the step without specifying a value for that option.

err:XS0019

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:XS0020

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:XS0022

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:XS0024

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:XS0025

It is a static error if the expanded-QName value of the type attribute is in no namespace or in the XProc namespace.

err:XS0026

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:XS0027

It is a static error if an option is specified with both the shortcut form and the long form.

err:XS0028

It is a static error to declare an option or variable in the XProc namespace.

err:XS0029

It is a static error to specify a connection for a p:output inside a p:declare-step for an atomic step.

err:XS0030

It is a static error to specify that more than one input port is the primary.

err:XS0031

It is a static error to use an option on an atomic step that is not declared on steps of that type.

err:XS0032

It is a static error if no connection is provided and the default readable port is undefined.

err:XS0036

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:XS0037

It is a static error if any step directly contains text nodes that do not consist entirely of whitespace.

err:XS0038

It is a static error if any required attribute is not provided.

err:XS0039

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:XS0041

It is a static error to specify both binding and element on the same p:namespaces element.

err:XS0042

It is a static error to attempt to provide a connection for an input port on the declaration of an atomic step.

err:XS0044

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:XS0048

It is a static error to use a declared step as a compound step.

err:XS0051

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:XS0052

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:XS0053

It is a static error to import a single pipeline if that pipeline does not have a type.

err:XS0057

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:XS0058

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:XS0059

It is a static error if the pipeline element is not p:pipeline, p:declare-step, or p:library.

err:XS0060

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:XS0061

It is a static error if a use-when expression refers to the context or attempts to refer to any documents or collections.

err:XS0062

It is a static error if a required version attribute is not present.

err:XS0063

It is a static error if the value of the version attribute is not a xs:decimal.

err:XS1001

It is a static error if the code attribute is missing from any but the last p:catch, if the last p:catch has a code, or if any error code is repeated.

err:XS1002

It is a static error if there is no primary input port.

err:XS1003

It is a static error if an expression does not have a closing right curly bracket or if an unescaped right curly bracket occurs outside of an expression.

err:XS1004

It is a static error if the step attribute is not specified, and there is no default readable port. It is a static error if the port attribute is not specified, and the step identified has no primary output port.

err:XS1005

It is a static error if the port attribute is not specified, and the step identified has no primary output port.

err:XS1006

It is a static error if the encoding specified is not supported by the implementation.

err:XS1007

It is a static error if an encoding is specified and the content type is an XML media type.

err:XS1008

It is a static error if the content type value specifies a character set and the encoding attribute is absent.

err:XS1009

It is a static error if an encoding is specified and the content of the p:inline contains any XML markup.

2.2 XProc 2.0 Step Errors

err:XC0002

It is a dynamic error if the value starts with the string “--”.

err:XC0003

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:XC0004

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:XC0005

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:XC0006

It is a dynamic error if the method is not specified on a c:request.

err:XC0010

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:XC0012

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:XC0013

It is a dynamic error if the pattern matches a processing instruction and the new name has a non-null namespace.

err:XC0014

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:XC0017

It is a dynamic error if the absolute path does not identify a directory.

err:XC0019

It is a dynamic error if the documents are not equal, and the value of the fail-if-not-equal option is true.

err:XC0020

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:XC0022

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:XC0023

It is a dynamic error if the match pattern does not match an element.

err:XC0025

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:XC0026

It is a dynamic error if any XPath expression makes reference to the context node, size, or position when the context item is undefined.

err:XC0028

it is a dynamic error if the content of the c:body element does not consist entirely of characters

err:XC0029

It is a dynamic error if an XInclude error occurs during processing.

err:XC0030

It is a dynamic error if the override-content-type value cannot be used (e.g. text/plain to override image/png).

err:XC0033

It is a dynamic error if the command cannot be run.

err:XC0034

It is a dynamic error if the current working directory cannot be changed to the value of the cwd option.

err:XC0035

It is a dynamic error to specify both result-is-xml and wrap-result-lines.

err:XC0036

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:XC0037

It is a dynamic error if the value provided is not a properly x-www-form-urlencoded value.

err:XC0038

It is a dynamic error if the specified version is not available.

err:XC0039

It is a dynamic error if a sequence of documents (including an empty sequence) is provided to an XSLT 1.0 step.

err:XC0040

It is a dynamic error if the document element of the document that arrives on the source port is not c:request.

err:XC0050

It is a dynamic error if the URI scheme is not supported or the step cannot store to the specified location.

err:XC0051

It is a dynamic error if the content-type specified is not supported by the implementation.

err:XC0052

It is a dynamic error if the encoding specified is not supported by the implementation.

err:XC0053

It is a dynamic error if the assert-valid option is true and the input document is not valid.

err:XC0054

It is a dynamic error if the assert-valid option is true and any Schematron assertions fail.

err:XC0055

It is a dynamic error if the implementation does not support the specified mode.

err:XC0056

It is a dynamic error if the specified initial mode or named template cannot be applied to the specified stylesheet.

err:XC0057

It is a dynamic error if the sequence that results from evaluating the XQuery contains items other than documents and elements.

err:XC0058

It is a dynamic error if the all and relative options are bothtrue.

err:XC0059

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:XC0060

It is a dynamic error if the processor does not support the specified version of the UUID algorithm.

err:XC0061

It is a dynamic error if the name of any encoded parameter name is not a valid xs:NCName.

err:XC0062

It is a dynamic error if the match option matches a namespace node.

err:XC0063

It is a dynamic error if the path-separator option is specified and is not exactly one character long.

err:XC0064

It is a dynamic error if the exit code from the command is greater than the specified failure-threshold value.

err:XC0066

It is a dynamic error if the arg-separator option is specified and is not exactly one character long.

err:XC0067

It is a dynamic error to encounter a single closing curly brace “}” that is not immediately followed by another closing curly brace.

err:XC0068

It is a dynamic error if more than one document appears on the source port.

err:XC1001

It is a dynamic error if the properties map contains a key equal to the string “content-type”.

err:XC1002

It is a dynamic error if the supplied content-type is not a valid media type of the form “type/subtype+ext”.

err:XC1003

It is a dynamic error if the p:cast-content-type step cannot perform the requested cast.

err:XC1004

It is a dynamic error if the c:data contains content is not a valid base64 string.

err:XC1005

It is a dynamic error if the c:data element does not have a content-type attribute.

err:XC1006

It is a dynamic error if the content-type is supplied and is not the same as the content-type specified on the c:data element.

err:XC1007

In all cases except when the input document is a c:data element, it is a dynamic error if the content-type is not supplied.

err:XD0006

It is a dynamic error if more than one document appears on the source port of the p:exec step.

err:XD0014

It is a dynamic error for any unqualified attribute names other than “name”, “namespace”, or “value” to appear on a c:param element.

err:XD0018

It is a dynamic error if the parameter list contains any elements other than c:param.

err:XD0025

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:XD0034

It is a dynamic error to specify a new namespace or prefix if the lexical value of the specified name contains a colon.