[oXygen-user] different results using TRANG directly and fromwithin oXygen

Theun Fleer
Thu May 29 08:54:37 CDT 2008

Hi Sorin
thank you for the very quick reply! This kind of support is only one of the reasons I like oxygen this much :-)
We do not use classpath for ant, but macrodefs (and a copy of trang located in lib next to build.xml)
in my build.xml we have the following macrodef:
 <macrodef name="trang2dtd" description="use trang to generate DTD. 
    Input attributes are 'rng' for the input rngfile 'dtd' for the resulting dtdfile">
    <attribute name="rng" default=""/>
    <attribute name="dtd" default=""/>
      <echo message="trang: @{rng}"/>
      <java jar="lib/trang.jar" failonerror="true" maxmemory="128m" fork="true">
        <arg value="-I"/>
        <arg value="rng"/>
        <arg value="-O"/>
        <arg value="dtd"/>
        <arg value="@{rng}"/>
        <arg value="@{dtd}"/>
Do you know by any chance how to change this? Probably I should read the ANT-manual... :-)


Van:  namens Sorin Ristache
Verzonden: do 29-5-2008 15:30
Onderwerp: Re: [oXygen-user] different results using TRANG directly and fromwithin oXygen


We patched Trang in Oxygen to fix this problem of correct namespace
prefixes added to element names. You can apply the patch in Ant too by
adding oxygen.jar in front of trang.jar to the classpath of your Ant task.


Theun Fleer wrote:
> hi
> How is TRANG being called from <oXygen/>?
> When I convert a (simplified) RELAX NG Schema directly with TRANG using
> java -jar trang.jar -I rng -O dtd myschema.rng myschema.dtd
> the resulting DTD is not valid (regarding namespaces with "fixed prefixes")
> I use this call (using ANT) to automate the process of converting
> RNG-schemas to DTDs (and XSDs)
> But when I convert the same myschema.rng from within <oXygen/> using
> Tools > Trang Converter... the result is a perfect DTD, valid and just
> how I want it to be. What's causing the differences? And how can I use
> TRANG from ANT in the same way as <oXygen/>?
> groet
> Theun Fleer
> Daidalos, NL

Drs. T. Fleer
GSM: +31 (0)6 40 58 50 27
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

oXygen-user mailing list


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 13499 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20080529/0e61094f/attachment.bin 

More information about the oXygen-user mailing list