Page 1 of 1

Bug with Relax NG to XSD conversion

Posted: Fri Feb 04, 2005 11:06 pm
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

Posted: Mon Feb 07, 2005 2:48 pm
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.

Posted: Mon Feb 07, 2005 3:11 pm
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