Dear Castor development team,

I recently run into a problem when trying to use Castor with a RDF/XML
dtd. Basically I got following exceptions when compiling:

**************************************
Exception in thread "main" java.lang.IllegalArgumentException:
getAttribute: Namespace prefix not recognized 'rdf:resource'
     [java]     at
org.exolab.castor.xml.schema.Schema.getAttribute(Unknown Source)
     [java]     at
org.exolab.castor.builder.SourceFactory.processAttributes(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceFactory.processComplexType(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceFactory.createSourceCode(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceGenerator.createClasses(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceGenerator.createClasses(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
     [java]     at
org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
Source)
     [java]     at org.exolab.castor.builder.SourceGenerator.main(Unknown
Source)
     [java] Java Result: 1

**********************************************************
and as a result, I only got 6 generated java sources files.

The dtd i'm using is downloaded from the geneontology.org website,it's
rdf-xml, and I'm including it as an attachement of this email. Your help
will will be greatly appreciated.

Sincerely,
Jing Zhao


Attachment: go.dtd
Description: Binary data

Reply via email to