Name

p:file-mkdir — The standard p:file-mkdir step.

Synopsis

The p:file-mkdir step creates a directory.

Output portPrimarySequenceContent types
result✔  application/xml 
Option nameTypeDefault valueRequired
hrefxs:anyURI ✔ 
fail-on-errorxs:booleantrue() 
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <p:output port="result" primary="true" content-types="application/xml"/>
  |   <p:option name="href" required="true" as="xs:anyURI"/>
  |   <p:option name="fail-on-error" as="xs:boolean" select="true()"/>
5 |</p:declare-step>
Errors
CodeDescription
err:XC0114It is a dynamic error (err:XC0114) if the directory referenced by the href option cannot be created.
err:XC0140It is a dynamic error (err:XC0140) if an implementation does not support p:file-mkdir for a specified scheme.
err:XC0141It is a dynamic error (err:XC0141) if p:file-mkdir not available to the step due to access restrictions in the environment in which the pipeline is run.
err:XD0064It is a dynamic error (err:XD0064) if the base URI is not both absolute and valid according to RFC 3986.
Implementation defined features
  • Conformant processors must support URIs whose scheme is file for the href option of p:file-mkdir. It is implementation-defined what other schemes are supported by p:file-mkdir, and what the interpretation of ‘directory’, ‘file’ and ‘contents’ is for those schemes.

Description

The p:file-mkdir step is defined in the XProc 3.1: Standard Step Library. It is also described on XProcRef.org.