BSD Ports

textproc/trang 20241231 NetBSD

Multi-format schema converter based on RELAX NG

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
textproc
Package size
755.0 KiB, 892.9 KiB installed

Description

Trang converts between different schema languages for XML. It supports the following languages:

\* RELAX NG (XML syntax)
\* RELAX NG compact syntax
\* XML 1.0 DTDs
\* W3C XML Schema

A schema written in any of the supported schema languages can be converted into any of the other supported schema languages, except that W3C XML Schema is supported for output only, not for input. Trang can also infer a schema from one or more example XML documents.

Trang is constructed around an RELAX NG object model designed to support schema conversion. For each schema language supported for input, there is an input module that can convert from the schema language into this internal object model. Similarly, for each schema language supported for output, there is an output module that can convert from the internal object model in the schema language.

Trang aims to produce human-understandable schemas; it tries for a translation that preserves all aspects of the input schema that may be significant to a human reader, including the definitions, the way the schema is divided into files, annotations and comments.

In the other systems

SystemPortVersion
NetBSDtextproc/trang20241231
FreeBSDtextproc/trang20241231_2
DragonFlytextproc/trang20241231
HardenedBSDtextproc/trang20241231_2
GhostBSDtextproc/trang20241231_2

Install

Binary package:

pkgin install trang

From pkgsrc:

cd /usr/pkgsrc/textproc/trang && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6420241231
NetBSD 10.1 aarch6420241231
SmartOS / illumos x86_6420241231
macOS 15 arm6420241231

Dependencies

Run dependencies 2

No port depends on this one.