# 使用 Homebrew, Nix, apt, zypper 安装 jing-trang

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

## 安装

```sh
sudo av install brew:jing-trang
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jing-trang
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jing-trang
```

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

- Debian apt (92%):

```sh
sudo apt install dtdinst
```

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

- zypper (92%):

```sh
sudo zypper install dtdinst
```

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

## 软件包事实

- **软件包键:** brew:jing-trang
- **软件包管理器:** Homebrew
- **版本:** 20241231
- **来源摘要:** Schema validation and conversion based on RELAX NG
- **主页:** <http://www.thaiopensource.com/relaxng/>
- **仓库:** <https://github.com/relaxng/jing-trang>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jing (别名)
- trang (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Jing-Trang packages two long-lived Java tools from the RELAX NG ecosystem: Jing, a RELAX NG validator, and Trang, a multi-format XML schema converter. Together they cover validation, conversion between RELAX NG XML syntax, RELAX NG compact syntax, XML DTDs, and W3C XML Schema output, and schema inference from example XML documents.

### 项目历史

Jing and Trang grew out of James Clark's RELAX NG work. The RELAX NG home page identifies Jing as a Java validator written by James Clark and Trang as a Java schema converter written by James Clark that uses Jing. RELAX NG itself was standardized through OASIS in 2001, gained compact syntax in 2002, and became part of ISO/IEC 19757.

The project history spans early 2000s RELAX NG tooling, a Google Code era, and the GitHub-hosted `relaxng/jing-trang` repository. The preserved Jing and Trang pages state that development of both tools took place together in the jing-trang project, while the GitHub repository preserves the combined build and produces `jing.jar` and `trang.jar`.

### 采用历史

Jing became one of the canonical open-source RELAX NG validators listed by relaxng.org, with support for both XML and compact syntaxes and library use with SAX2 parsers. Trang earned a similar role for schema conversion, especially for teams maintaining DTD, RELAX NG compact syntax, and W3C XML Schema artifacts across XML publishing and standards workflows.

### 使用方式

Package-manager users mainly install Jing-Trang to get the `jing` and `trang` commands. `jing` validates XML documents against RELAX NG schemas, while `trang` converts schemas among supported formats and can infer a schema from example XML. The repository README documents building the Java jars with the included Ant wrapper.

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

Jing-Trang matters because it is the kind of old, stable XML infrastructure package that quietly supports documentation toolchains, standards validation, editors, and build systems. Its version tags and release names preserve the older date-stamped style common in Java XML tools, and its presence in Homebrew, Debian-family packages, Nix, and Maven metadata reflects a tool that survived long after XML schema debates cooled.

### 时间线

- 2001: RELAX NG became an OASIS Committee Specification, and early jing-trang tags include the RELAX NG tooling era.
- 2002: RELAX NG Compact Syntax reached OASIS Committee Specification status; Trang's page documents compact-syntax conversion support.
- 2003: RELAX NG became ISO/IEC 19757-2, making Jing useful for validating an international-standard schema language.
- 2009: The V20091111 tag and Maven metadata show the Google Code-era combined Jing/Trang artifact.
- 2015: V20151127 appeared in the GitHub repository's release history.
- 2024: V20241231 continued the combined GitHub-hosted release series.

### Related projects

- Jing-Trang is tied to RELAX NG, TREX, RELAX Core, DTDinst, SAX2, W3C XML Schema, and XML editor integrations. The RELAX NG software list places it beside validators such as RNV, libxml2, MSV, and schema-related tools such as rnc2rng and RNGOM.

### 来源

- <https://api.github.com/repos/relaxng/jing-trang/releases?per_page=100>
- <https://api.github.com/repos/relaxng/jing-trang/tags?per_page=100>
- <https://central.sonatype.com/artifact/com.thaiopensource/jing>
- <https://github.com/relaxng/jing-trang>
- <https://relaxng.org/>
- <https://relaxng.org/jclark/jing.html>
- <https://relaxng.org/jclark/trang.html>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - dtdinst - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: dtdinst from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML DTD to XML instance format converter | https://github.com/relaxng/jing-trang
- Debian apt - jing - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: jing from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RELAX NG validator | https://github.com/relaxng/jing-trang
- Debian apt - jing-trang-doc - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: jing-trang-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Jing Trang and dtdinst documentation | https://github.com/relaxng/jing-trang
- Debian apt - libdtdinst-java - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: libdtdinst-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML DTD to XML instance format converter - Java library | https://github.com/relaxng/jing-trang
- Debian apt - libjing-java - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: libjing-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RELAX NG validator - library | https://github.com/relaxng/jing-trang
- Debian apt - libtrang-java - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: libtrang-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML schema converter - Java library | https://github.com/relaxng/jing-trang
- Debian apt - trang - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: trang from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML schema converter | https://github.com/relaxng/jing-trang
- Debian apt - xhtml-relaxng - 20241231+repack-1~deb13u1: normalized package name match | Debian stable package indexes: xhtml-relaxng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Implementation in RELAX NG of the modularization of XHTML | https://github.com/relaxng/jing-trang
- Nix - jing-trang: normalized package name match | nixpkgs package indexes: pkgs/by-name/ji/jing-trang/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dtdinst - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: dtdinst from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML DTD to XML instance format converter | https://github.com/relaxng/jing-trang
- Ubuntu apt - jing - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: jing from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RELAX NG validator | https://github.com/relaxng/jing-trang
- Ubuntu apt - jing-trang-doc - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: jing-trang-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Jing Trang and dtdinst documentation | https://github.com/relaxng/jing-trang
- Ubuntu apt - libdtdinst-java - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libdtdinst-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML DTD to XML instance format converter - Java library | https://github.com/relaxng/jing-trang
- Ubuntu apt - libjing-java - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libjing-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RELAX NG validator - library | https://github.com/relaxng/jing-trang
- Ubuntu apt - libtrang-java - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libtrang-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML schema converter - Java library | https://github.com/relaxng/jing-trang
- Ubuntu apt - trang - 20220510-3: normalized package name match | Ubuntu 24.04 LTS package indexes: trang from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML schema converter | https://github.com/relaxng/jing-trang


## Combined YAML source

View the package source record on GitHub. [combined/jing-trang.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jing-trang.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
