# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 xmlto

查看 xmlto 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:xmlto
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xmlto
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xmlto
```

  证据: MacPorts ports tree: textproc/xmlto/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add xmlto
```

  证据: Alpine Linux edge package indexes: xmlto from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install xmlto
```

  证据: Debian stable package indexes: xmlto from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install xmlto
```

  证据: Fedora Rawhide package metadata: xmlto from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#xmlto
```

  证据: nixpkgs package indexes: pkgs/by-name/xm/xmlto/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S xmlto
```

  证据: Arch Linux sync databases: xmlto from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install xmlto
```

  证据: openSUSE Tumbleweed package metadata: xmlto from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:xmlto
- **软件包管理器:** Homebrew
- **版本:** 0.0.29
- **来源摘要:** Convert XML to another format (based on XSL or other tools)
- **主页:** <https://pagure.io/xmlto/>
- **最后更新:** 2026-06-22T14:06:42-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xmlif (别名)
- xmlto (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.0.29
## 项目历史与用法

xmlto is a shell-script frontend for converting XML documents to many output formats without making users remember the detailed command lines for XSLT processors and formatting backends. Its strongest association is DocBook-era documentation pipelines.

### 项目历史

The upstream changelog begins with a 0.0.0 stable release in November 2001. Early development, largely by Tim Waugh with contributions from Joe Orton and Eric S. Raymond, focused on DocBook-to-manpage and DocBook-to-output-format glue, format scripts, option parsing, and the db2man stylesheet era.

The project soon added xmlif, a companion utility for conditional XML filtering, and moved toward relying on external DocBook XSL stylesheets rather than shipping its own db2man copy. Later releases added validation behavior, XInclude handling, better portability, FOP and dblatex support, xhtml1 input support, epub output, profiling support, and fewer shell portability traps.

The README says xmlto has been maintained by Ondrej Vasik since 0.0.19 and co-maintained by Ondrej Sloup since 0.0.29. The 0.0.29 news entry modernized the repository files, Fedora spec handling, Cygwin/MSYS output paths, and build behavior.

### 采用历史

xmlto became useful wherever XML documentation had to produce man pages, HTML, PDF, PostScript, text, or other generated artifacts as part of a build. Its adoption was helped by being a small wrapper over common tools such as xsltproc, PassiveTeX, FOP, and dblatex rather than a replacement for them.

### 使用方式

Users run xmlto with an input format and output format, and the script selects stylesheets, calls the XSLT processor, and performs post-processing. The README lists docbook, xhtml1, and fo inputs and outputs including html, xhtml, man, pdf, ps, txt, epub-related formats, and several legacy formatter targets.

xmlif filters XML according to conditional markup, which is useful when one XML source needs to generate different documentation variants depending on build conditions.

### 为什么软件包爱好者会关心

xmlto is package-build connective tissue. It sits between source documentation and generated install artifacts, turning the old DocBook toolchain into one command that distro build scripts can depend on and patch around.

### 时间线

- 2001-11-23: xmlto 0.0.0 stable appeared as the initial release.
- 2002-10-16: xmlto 0.0.11 included xmlif and stopped shipping the db2man stylesheet because it came from docbook-xsl.
- 2007-11-19: xmlto 0.0.19 began the Ondrej Vasik maintenance era noted in the README.
- 2008-2009: Releases added FOP, dblatex, xhtml1 source support, automated tool-path detection, and portability fixes.
- 2011: xmlto added basic experimental DocBook-to-epub support.
- 2024-04-10: ChangeLog entries for 0.0.29 updated repository formatting, Fedora spec handling, and Cygwin/MSYS path behavior.

### Related projects

- Related projects and technologies include DocBook XML, docbook-xsl, xsltproc, libxslt, xmllint, PassiveTeX, Apache FOP, dblatex, xmlif, groff man pages, HTML/XHTML, XSL-FO, and epub tooling.

### 来源

- <https://packages.debian.org/sid/xmlto>
- <https://pagure.io/xmlto/raw/master/f/ChangeLog>
- <https://pagure.io/xmlto/raw/master/f/NEWS.md>
- <https://pagure.io/xmlto/raw/master/f/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - xmlto - 0.0.28-3.1: normalized package name match | Debian stable package indexes: xmlto from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML-to-any converter | https://pagure.io/xmlto/
- Nix - xmlto: normalized package name match | nixpkgs package indexes: pkgs/by-name/xm/xmlto/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xmlto - 0.0.28-2.1: normalized package name match | Ubuntu 24.04 LTS package indexes: xmlto from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML-to-any converter | https://fedorahosted.org/xmlto/
- apk - xmlto - 0.0.29-r0: normalized package name match | Alpine Linux edge package indexes: xmlto from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Convert xml to many other formats | https://pagure.io/xmlto/
- apk - xmlto-doc - 0.0.29-r0: normalized package name match | Alpine Linux edge package indexes: xmlto-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Convert xml to many other formats (documentation) | https://pagure.io/xmlto/
- dnf - xmlto - 0.0.29-6.fc45: normalized package name match | Fedora Rawhide package metadata: xmlto from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A tool for converting XML files to various formats | https://pagure.io/xmlto/
- dnf - xmlto-tex - 0.0.29-6.fc45: normalized package name match | Fedora Rawhide package metadata: xmlto-tex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A set of xmlto backends with TeX requirements | https://pagure.io/xmlto/
- dnf - xmlto-xhtml - 0.0.29-6.fc45: normalized package name match | Fedora Rawhide package metadata: xmlto-xhtml from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A set of xmlto backends for xhtml1 source format | https://pagure.io/xmlto/
- pacman - xmlto - 0.0.29-1: normalized package name match | Arch Linux sync databases: xmlto from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Convert xml to many other formats | https://pagure.io/xmlto/
- zypper - xmlto - 0.0.29-1.5: normalized package name match | openSUSE Tumbleweed package metadata: xmlto from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool for Converting XML Files to Various Formats | https://pagure.io/xmlto/
- MacPorts - xmlto: normalized package name match | MacPorts ports tree: textproc/xmlto/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/xmlto.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xmlto.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
