schema in multiple files: trang problems

Manuel González Castro <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Organization UDC
Message-ID <[email protected]>
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"
...

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 
...

However, after the translation into XML syntax the resulting RNG files (driver and modules) have all grammars, elements and attributes defined in the default namespace. It seems that trang ignores the namespace definition in my RNC driver file.

I tried with a driver file like this:

default namespace = "http://mynamespace"
include "module1.rnc"
include "module2.rnc"
...

And it happens the same. Any workarround for this?

Thanks in advance for your time,
Manuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.