Name

p:file-create-tempfile — The standard p:file-create-tempfile step.

Synopsis

The p:file-create-tempfile step creates a temporary file.

Output portPrimarySequenceContent types
result✔  application/xml 
Option nameTypeDefault value
delete-on-exitxs:booleanfalse()
fail-on-errorxs:booleantrue()
hrefxs:anyURI?()
prefixxs:string?()
suffixxs:string?()
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" as="xs:anyURI?"/>
  |   <p:option name="suffix" as="xs:string?"/>
5 |   <p:option name="prefix" as="xs:string?"/>
  |   <p:option name="delete-on-exit" as="xs:boolean" select="false()"/>
  |   <p:option name="fail-on-error" as="xs:boolean" select="true()"/>
  |</p:declare-step>
Errors
CodeDescription
err:XC0116It is a dynamic error (err:XC0116) if the temporary file could not be created.
err:XC0138It is a dynamic error (err:XC0138) if an implementation does not support p:file-create-tempfile for a specified scheme.
err:XC0139It is a dynamic error (err:XC0139) if p:file-create-tempfile cannot be completed due to access restrictions in the environment in which the pipeline is run.
err:XD0011It is a dynamic error (err:XD0011) if the resource referenced by the href option does not exist, cannot be accessed or is not a directory.
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-create-tempfile. It is implementation-defined what other schemes are supported by p:file-create-tempfile, and what the interpretation of ‘directory’, ‘file’ and ‘contents’ is for those schemes.

Description

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