Hello Peeter, Apologies if I am misusing the schema converter code you committed but I am a bit confused as to how to make use of the NamespaceExtractor class. As demonstrated in your test-case for the SchemaConverter I am attempting to use an extractor to get the additional namespaces out a schema file. However, this does not appear possible due to the use of getURI for the mapping property:
<<< if (mapping.getURI(prefix) != null){... >>> The NamespaceMapping class throws an exception if the prefix is unmapped and thus the empty NamespaceMapping created using the default structure always generates this exception, which only gets caught and logged. On another note, it seems unclear how to best handle the default namespace using the NamespaceMapping class. When using the reader and explicitly mapping the namespace to be "" (i.e NamespaceMapping.setMapping("", "");), this works fine. But when outputting it writes the default namespace in a manner that the reader cannot read. Is there a recommended way of handling this case? Thanks! Best Regards, -- Mike On 12/20/05, Peeter Piegaze <[EMAIL PROTECTED]> wrote: > > Hi Nicolas, > > Regarding your interest in XML schema to JCR node type conversion: I > have committed the XSD to JCR node type converter into > contribs/nt-ns-util > > Cheers > Peeter > > > On 10/31/05, Nicolas Belisle <[EMAIL PROTECTED]> wrote: > > Great news ! > > > > I'm looking forward to this. > > > > > > Many thanks, > > > > Nick > > > > > > >Hi Nicholas, Actually, I wrote something that does this. I haven't > gotten > > >around to completely finishing it yet, but I will take your mail as a > > >motivator to do just that. Then I will commit to contribs. Cheers, > Peeter > > >On 10/31/05, Nicolas Belisle <[EMAIL PROTECTED]> wrote: > > > >Hi, > > I'm currently investigating ways to convert XML schemas to > > >Jackrabbit node > types declaration. This way, most metadata formats > > >(Dublin Core, MARC21, > etc.) could be integrated easily in a > Jackrabbit > > >repository. > > Anyone has done something in that direction and would > like > > >to its share > ideas ? Any other comments on this ? > > I would > certainly > > >contribute the result back to Jackrabbit. > > > Regards, > > Nick > > > > > > >