Bug with Relax NG to XSD conversion

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dsewell
Posts: 125
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Bug with Relax NG to XSD conversion

Post by dsewell »

Hi,

When converting from a Relax NG schema to W3C XML Schema, one of the advanced options is a "disable-abstract-elements" checkbox. By default it is unchecked. Today I needed to create an XML schema without abstract elements (i.e., no abstract="true" attributes), so I checked the box, but the output schema was not changed.

The box should control whether Trang gets the parameter "-o disable-abstract-elements", I assume. (That works when I run Trang from the command line.)

This is with oXygen 5.1, Mac OS X version.

best,

David
iulian_velea
Posts: 63
Joined: Fri Dec 12, 2003 6:34 pm
Contact:

Post by iulian_velea »

Hi David,

Thank you for the message. It seems that the option "disable-abstract-elements" has no effect indeed. I added a bug related to this problem on our bug list.
Meanwhile you may want to use the annotation attribute:

Code: Select all

tx:enableAbstractElements="false"
Best Regards,
Iulian.
iulian_velea
Posts: 63
Joined: Fri Dec 12, 2003 6:34 pm
Contact:

Post by iulian_velea »

iulian_velea wrote:
... Meanwhile you may want to use the annotation attribute:

Code: Select all

tx:enableAbstractElements="false"
Where "tx" is the prefix for the namespace "http://www.thaiopensource.com/ns/relaxng/xsd", so a a namespace declaration of :

Code: Select all

xmlns:tx="http://www.thaiopensource.com/ns/relaxng/xsd"
will be needed. See also:
http://www.thaiopensource.com/download/ ... anual.html
Post Reply