xupdate(1p)

xupdate1p

Process xupdate commands over an xml document

Usage

xupdate [options] <xupdate-file> <input-file>

Options: {-u | --usage print brief help on usage -h | --help print documentation -n | --namespace prefix=namespace-uri}

associate a namespace with a prefix for use

in XPath selections in XUpdate file

but also put an extra newline after

every start-tag and before every end-tag

Options

--usage

Print a brief help message on usage and exits.

--help

Prints the manual page and exits.

--namespace prefix=namespace-uri

Associate a namespace with a prefix. The prefix may be used in the XPath selections in the XUpdate file to address nodes of the source document that belong to the given namespace. This is especially useful for mapping the default namespace to a prefix because XPath by definition doesn't honour default namespaces. This option may occur several times.

--keep-ws

Preserves any whitespace in XUpdate file. The default behaviour is to remove all ignorable whitespace and any leading or trailing whitespace in all XUpdate command elements in the XUpdate file.

--strip-ws

Remove "ignorable" whitespace from the input file. The default behaviour is to keep any whitespace unless the --extra-indent (-j) option is used. Note that the whitespace being present or not may affect results returned by some XPath expressions (such as /foo/bar/text()[2]).

--version

Print version and revision number of This program command and version number of XML::XUpdate library used.

--indent

Indent the resulting document on output.

--extra-indent

Indent the resulting document on output as --indent, but also add a leading and a trailing linebreak to every text node.

--debug

Print some debugging information about commands being applied.

Overview

This program will parse the given XUpdate file and the input file and print the input file updated accordingly. XUpdate file format is described in XUpdate Working Draft from 2000-09-14 (http://www.xmldb.org/xupdate/xupdate-wd.html).

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 11–13

Author

Petr Pajas, [email protected]

From libxml-xupdate-libxml-perl 0.6.0-3.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.