# Install jing-trang with Homebrew, apt, Nix, zypper

Schema validation and conversion based on RELAX NG. Version 20241231 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install dtdinst
```

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

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install dtdinst
```

  Evidence: openSUSE Tumbleweed package metadata: dtdinst from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:jing-trang
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/jing-trang>
- **Version:** 20241231
- **Source summary:** Schema validation and conversion based on RELAX NG
- **Homepage:** <http://www.thaiopensource.com/relaxng/>
- **Repository:** <https://github.com/relaxng/jing-trang>
- **Upstream docs:** <http://www.thaiopensource.com/relaxng>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/relaxng/jing-trang.git>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- jing (cli)
- trang (cli)
- jing (alias)
- trang (alias)

## Dependencies

- openjdk

## Build dependencies

- ant

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 20241231
- Local data: ok
- Upstream repository: https://github.com/relaxng/jing-trang
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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`.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jing-trang
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [ant](https://www.automicvault.com/pkg/brew/ant/) - Build dependency declared by Homebrew.
- [rnv](https://www.automicvault.com/pkg/brew/rnv/) - Shares av.db curated category or tags: cli, developer-tools, relax-ng, schema-validation, xml.
- [castxml](https://www.automicvault.com/pkg/brew/castxml/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [expat](https://www.automicvault.com/pkg/brew/expat/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [itstool](https://www.automicvault.com/pkg/brew/itstool/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [libslax](https://www.automicvault.com/pkg/brew/libslax/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [libwbxml](https://www.automicvault.com/pkg/brew/libwbxml/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [libxslt](https://www.automicvault.com/pkg/brew/libxslt/) - Shares av.db curated category or tags: cli, developer-tools, xml.
- [saxon](https://www.automicvault.com/pkg/brew/saxon/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, openjdk, xml.
- [calabash](https://www.automicvault.com/pkg/brew/calabash/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, openjdk, xml.

## Combined YAML source

View the package source record on GitHub. [combined/jing-trang.yml](https://github.com/automic-vault/db/blob/main/combined/jing-trang.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
