trang(1)

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.

SEE ALSO

   jing(1)

   Trang Manual

   http://relaxng.org

AUTHOR

   James Clark ([email protected])

   This  product  includes  software  developed  by  the  Apache  Software
   Foundation (http://www.apache.org/).

                               @VERSION@                          trang(1)



Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.


Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.


Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.