@@ 12,9 12,6 @@ It requires the following Python 3 packa
* [blessings](https://pypi.org/project/blessings/)
* [lxml](https://pypi.org/project/lxml/)
-The lxml package internally calls the
-[libxml2 and libxslt C libraries](http://xmlsoft.org).
-
On Debian-based systems, the prerequisites can be installed as follows:
sudo apt-get install python3-blessings python3-lxml
@@ 46,19 43,19 @@ Usage:
Normally, `xgrep.py` outputs the matching parts of the XML files together with
their file names and the XPath expression. The option `-m` outputs only the
matching parts, without file names or XPath expressions; with `-M`, the matching
-parts are prefixed with the corresponding file name. If `-r <ns>` is set,
-the [EXSLT function `<ns>:test()`](http://exslt.org/regexp/functions/test/) can
-be used in the XPath expression for matching regular expressions. The option
+parts are prefixed with the corresponding file name. If `-r <ns>` is set, the
+[EXSLT function `<ns>:test()`](https://exslt.github.io/regexp/functions/test/)
+can be used in the XPath expression for matching regular expressions. The option
`-i` indents the matching parts, and the option `-N` includes namespace
declarations. Matching parts can be abbreviated to their first line by means of
the option `-a`. The option `-s` normalises whitespace to spaces in the output.
Processing instructions and comments in the XML files are ignored unless the
options `-p` and `-P` are used. The `-C` option preserves color and formatting
-codes when piping output through [GNU less](http://www.gnu.org/software/less/)
+codes when piping output through [GNU less](https://www.gnu.org/software/less/)
or similar programs.
The options `-c`, `-l`, `-L`, `-n`, and `-q` mimic the behaviour of
-[GNU grep](http://www.gnu.org/software/grep/). The latter option suppresses any
+[GNU grep](https://www.gnu.org/software/grep/). The latter option suppresses any
output, but still returns the exit status (`0` if there are matches, `1` if
there are none, and `2` for errors).