Previous
Up
Next
Part II. Reference
Table of Contents
I. Standard XProc Compound Steps
p:choose
- Selects one of a number of alternative pipelines
p:declare-step
- Declares an XProc pipeline
p:for-each
- Iterates over a sequence of documents
p:group
- Groups a sequence of steps together
p:pipeline
- Declares an XProc pipeline
p:try
- Catches and provides recover from dynamic errors
p:viewport
- Processes inner portions of a document
II. Standard XProc Steps
p:add-attribute
- Adds a single attribute to the selected element (or elements)
p:add-xml-base
- Adds explicit xml:base attributes
p:compare
- Compares two documents for equality
p:count
- Counts the number of documents that appear in a sequence
p:delete
- Deletes matching nodes
p:directory-list
- Lists the files, directories, and other contents of a directory on the filesystem
p:error
- Causes an error
p:escape-markup
- Escapes XML markup
p:exec
- Runs an external command
p:filter
- Filters documents with a dynamically constructed select expression
p:hash
- Computes a cryptographic hash and inserts it into a document
p:http-request
- Interact with other systems over HTTP
p:identity
- Passes its input through unchanged
p:insert
- Inserts content into a document
p:label-elements
- Adds an attribute (often xml:id) to matching elements
p:load
- Loads a document from a URI
p:make-absolute-uris
- Resolves relative URIs to absolute URIs in the source document
p:namespace-rename
- Changes the URI associated with a namespace binding
p:pack
- Merges two document sequences
p:parameters
- Converts step parameters into XML
p:rename
- Renames elements, attributes, or processing instructions
p:replace
- Replaces matching content
p:set-attributes
- Sets a number of attributes at once
p:sink
- Discards its input
p:split-sequence
- Divides a sequence of documents into two sequences
p:store
- Stores a document (usually on the filesystem)
p:string-replace
- Replaces matched nodes with the result of evaluating an XPath expression
p:unescape-markup
- Converts “escaped XML” back into real XML
p:unwrap
- Removes an element, but not its content
p:uuid
- Generates a UUID and inserts it into a document
p:validate-with-relax-ng
- Validates a document using a RELAX NG grammar
p:validate-with-schematron
- Validates a document using a Schematron schema
p:validate-with-xml-schema
- Validates a document using W3C XML Schema
p:wrap-sequence
- Places an element wrapper around a sequence of documents
p:wrap
- Adds a wrapper around matching nodes
p:www-form-urldecode
- Decodes URL encoded form data
p:www-form-urlencode
- Encodes parameters into URL encoded form data
p:xinclude
- Performs XInclude processing
p:xquery
- Performs XQuery processing
p:xsl-formatter
- Performs XSL FO processing
p:xslt
- Performs XSLT processing
III. File Utilities
cxf:copy
- Copies a file
cxf:delete
- Deletes a file
cxf:head
- Returns the first few lines of text file
cxf:info
- Returns information about a file or directory
cxf:mkdir
- Creates a directory
cxf:move
- Moves (renames) a file or directory
cxf:tail
- Returns the last few lines of a text file
cxf:tempfile
- Creates a temporary file
cxf:touch
- Update the modification time of a file
IV. Operating System Utilities
cxo:info
- Returns information about the operating system
cxo:cwd
- Returns the current working directory of the processor
cxo:env
- Returns information about the environment
V. General Utilities
ex:recursive-directory-list
- Performs p:directory-list recursively