EnglishFrenchSpanish

OnWorks favicon

trang - Online in the Cloud

Run trang in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command trang that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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

DESCRIPTION


trang takes as input a schema written in any of the following formats:

RELAX NG (XML syntax)

RELAX NG (compact syntax)

XML 1.0 DTD

and produces as output a schema written in any of the following formats:

RELAX NG (XML syntax)

RELAX NG (compact syntax)

XML 1.0 DTD

W3C XML Schema

Trang can also infer a schema from one or more example XML documents.

Trang uses an internal representation based on RELAX NG. For each supported input format,
there is an input module that converts a schema in that input format into this internal
representation. For each supported output format, there is an output module that converts
the internal representation into a schema in that output format. Thus, any supported
input format can be translated to any supported output format.

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.

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.

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 -i and -o
options 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 form name=value. A boolean
parameter is specified using the form name or no-name. The applicable parameters
depend on the particular input and output module. For details, see the HTML
documentation.

Use trang online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad