[relaxng-user] schema in multiple files: trang problems

Manuel González Castro iinmgc00 at ucv.udc.es
Fri Dec 5 11:18:39 ICT 2003


Hello,

James Clark wrote:
>> On Tue, 2003-12-02 at 00:43, Manuel González Castro wrote:
>>> Hello,
>>> 
>>> I'm writing a modular schema in compact syntax, so I have
>>> 
>>> driver.rnc
>>> module1.rnc
>>> module2.rnc
>>> ...
>>> 
>>> I'm having problems when I translate my schema (file "driver.rnc")
>>> into XML syntax with trang (version 20030619). 
>>> 
>>> 1) The point between the name and the extension is missing in the
>>> generated module files: 
>>> 
>>> driver.rng
>>> module1rng   <== should be "module1.rng"
>>> module2rng   <== should be "module2.rng"
>>> ...
>> 
>> I can't reproduce this.  If you send a proper bug report, I'll look
>> at 
>> it further.

Sorry: I was testing an xml editor with a trang plugin, the trang.jar file that comes with it is 20030619 but for some extrange reason calling trang from the editor IDE causes the file extension problem. Calling trang from the command line works perfect, the bug is in the editor.

>>> 2) In my schema design, all modules define elements and attributes
>>> in the default namespace, and the driver file includes them in a
>>> namespace with the "inherit" keyword. It looks like:  
>>> 
>>> namespace myns = "http://mynamespace"
>>> include "module1.rnc" inherit = myns
>>> include "module2.rnc" inherit = myns
>>> ...
>> 
>> Trang RNG output has some bugs in handling inherit on include.  They
>> should be fixed in the next version.

I resolved this with David Tolpin's advice,

thanks a lot to both,
Manuel





More information about the relaxng-user mailing list