Yea, the problem I have seems like the scomp tool is not recognizing my xsdconfig. Is there a way to verify that it is indeed reading it?
On Sun, Dec 9, 2012 at 4:35 PM, Jacob Danner <jacob.dan...@gmail.com> wrote: > It's been a while since I've done anything with xsdconfig's but I think > adding a dirname/*.xsdconfig should be enough to include it during > compilation. > HTH, > -jacobd > On Dec 9, 2012 10:09 AM, "Chun Tat David Chu" <beyonddc.stor...@gmail.com> > wrote: > >> Hi All, >> >> I am new to XMLBeans. I would like to append a prefix to all the >> generated JAVA bindings. I am generating bindings for about 25 XML schema, >> and they are: >> apache-definitions-schema.xsd >> >> apache-system-characteristics-schema.xsd >> freebsd-definitions-schema.xsd >> freebsd-system-characteristics-schema.xsd >> ... (I am not listing all here, but these XML schema are obtained from >> http://oval.mitre.org/language/version5.3/index.html) >> >> I specified a xsdconfig named oval53.xsdconfig and placed within the same >> directory where the rest of the schema are located. I use the following >> arguments when running with scomp. I don't believe scomp takes any special >> argument to specify the location of the xsdconfig. >> scomp -src ${BINDING_DIR} \ >> -srconly \ >> -verbose \ >> ${OVAL53_XML_SCHEMA_DIR}/*.xsd >> >> My problem is it seems like scomp didn't read in my xsdconfig because >> none of the generated bindings are using the prefix that I specified. I >> believe I have the XML syntax set correctly (see attachment for the whole >> xsdconfig). >> <xb:namespace uriprefix=" >> http://oval.mitre.org/XMLSchema/oval-definitions-5#windows"> >> <xb:prefix>xmlbeans_oval53</xb:prefix> >> </xb:namespace> >> <xb:namespace uriprefix=" >> http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#windows"> >> <xb:prefix>xmlbeans_oval53</xb:prefix> >> </xb:namespace> >> >> Can someone please point me what is my problem? >> >> Thanks in advance! >> >> David >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org >> For additional commands, e-mail: dev-h...@xmlbeans.apache.org >> >