<oXygen/> User Guide

Converting Between Grammar Languages

The Trang converter allows you to convert a DTD or Relax NG (full or compact syntax) grammar or a set of XML files to an equivalent XML Schema, DTD or Relax NG (full or compact syntax) grammar. Where perfect equivalence is not possible due to limitations of the target language Oxygen will generate an approximation of the source grammar. The conversion functionality is available from Tools -> Trang Converter... .

The Trang converter is integrated in Oxygen : a grammar being edited can be converted with a toolbar button if that grammar can be the subject of a supported conversion. For example if you press the "Convert to ..." button while editing a DTD document the following dialog will show up:

Figure 4.9. Convert an edited grammar

Convert an edited grammar

Here you can set the target language of the conversion and the target grammar name.