trang(1)
π trang(1) β the manual, but make it make sense π
okay bestie, welcome to trang, a General Commands Manual icon. she converts between different schema languages for XML, and honestly? she's serving range. let's get into it β¨
πΈ NAME πΈ
trang β convert between different schema languages for XML
β¨ SYNOPSIS β¨
trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] [-i input-param] [-o
output-param] input-file ... output-file
like, that's the whole vibe in one line. read it slowly, she's worth it π«Ά
π¦ DESCRIPTION π¦
so trang takes as input a schema written in any of these formats:
- RELAX NG (XML syntax)
- RELAX NG (compact syntax)
- XML 1.0 DTD
and she produces as output a schema written in any of these formats:
- RELAX NG (XML syntax)
- RELAX NG (compact syntax)
- XML 1.0 DTD
- W3C XML Schema
and listen β Trang can also infer a schema from one or more example XML documents. yes, she can just look at your little XML babies and reverse-engineer the whole rulebook. main character behaviour, no cap π
Under the hood, Trang uses an internal representation based on RELAX NG. For each supported input format, there's an input module that converts a schema in that input format into this internal representation. For each supported output format, there's an output module that converts the internal representation into a schema in that output format. so basically it's a relay race and the baton is RELAX NG. and because of that: any supported input format can be translated to any supported output format. slay π
Trang requires two command-line arguments: the first is the URI or filename of the schema to be translated; the second is the output filename.
Trang infers the input and output modules to be used from the extension of input and output filenames as follows:
.rngβ RELAX NG (XML syntax).rncβ RELAX NG (compact syntax).dtdβ XML 1.0 DTD.xsdβ W3C XML Schema.xmlβ XML documents (used as examples from which to infer a schema)
This inference can be overridden using the -I and -O options. she'll guess, but you can absolutely correct her, and she won't be offended π
When the input is XML documents used as examples to infer a schema, more than one input file may be specified as arguments. All the input files are specified before the output file. so: examples first, destination last. order matters, bestie, don't fight it π
π OPTIONS π
-I rng|rnc|dtd|xmlβ Specifies which input module to use.-O rng|rnc|dtd|xsdβ Specifies which output module to use.-i input-param-o output-paramβ Specifies a parameter for an input (-i) or output (-o) module. The-iand-ooptions may be used multiple times in order to specify multiple parameters. There are two kinds of parameter: boolean parameters and string-valued parameters. A string-valued parameter is specified using the formname=value. A boolean parameter is specified using the formnameorno-name. The applicable parameters depend on the particular input and output module. For details, see the HTML documentation.
ngl the-iand-oparameters are the "iykyk" part of this manual β which ones actually apply depends entirely on which input and output module you're running, so check the HTML documentation before you start guessing π
π SEE ALSO π
jing(1)- Trang Manual
- http://relaxng.org
π AUTHOR π
James Clark (jjc@jclark.com)
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
and that's the whole page, bestie π§ this was version @VERSION@ of the trang manual page, from the General Commands Manual. go forth and convert schemas, you absolute icon ππ
π¦ where this page comes from
- debian bookworm: trang 20220510-2
- debian trixie: trang 20241231+repack-1~deb13u1
- ubuntu jammy: trang 20181222+dfsg2-6
- ubuntu noble: trang 20220510-3
- ubuntu questing: trang 20241231-1
- ubuntu resolute: trang 20241231+repack-1
- ubuntu stonking: trang 20241231+repack-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms