Hi Hank,
The schemaLocation attribute should point to the name of the schema file
whose package name you're customizing, not your binding file. See
samples/ubl/ubl.xjb for an external bindings file that customizes the
package names of several schema.
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Hank Ratzesberger wrote:
> [Thanks to Ed and Ryan at Sun for prior help,
> hopefully I'll be a contributor soon...]
>
>
> I have class name conflicts between two
> schema files representing two namespaces.
> I have tried two things to separate
> the schemas into two packages in order to
> avoid the collision:
>
> 1) adding a second .xjb file for first
> schema to the xjc command line:
> -b gmlstub.xjb
>
> 2) adding another bindings element to the
> the main xjb file (that I used to solve other
> class name conflicts):
>
> <jxb:bindings schemaLocation="gml.xjb" node="/xs:schema">
> <jxb:package name="org.opengis.gml"/>
> </jxb:bindings>
>
> In both cases I get essentially the same error message
> reported by xjc:
>
> "file:gml.xjb" is not a part of this compilation line 17 of iso19115.xjb
>
> Or slightly different if specified on the command line.
>
> To summarize, I have two schemas, one uses/extends some of
> the types of the other, but sans the namespace prefix,
> declares elements of the same name as the other.
>
> Tips, Tricks, RTFM's welcome.
>
> Thanks,
> Hank
>
> ============================================
> Replying to a list? I'll get my copy there!
>
> Hank Ratzesberger
> http://crustal.ucsb.edu/ | http://neesgrid.org/
> Institute for Crustal Studies
> University of California, Santa Barbara
> ============================================