users@jaxb.java.net

Re: Does xjc support default namespace?

From: Sam Cheung <sylcheung_at_hotmail.com>
Date: Fri, 13 Feb 2004 00:42:00 +0000

Thanks, but when I remove that line

And change this from
  <attribute ref="x:lang" use="optional" />
to
  <attribute ref="lang" use="optional" />
in my schema.

I got other errors: Any more idea about how to fix this problem. Thanks
again for all your help.

  [xjc] [ERROR] src-resolve.4.2: Components from namespace
'http://www.w3.org/2001/XMLSchema' are not referenceable from schema
document
'file:/C:/eclipseWorkspace3/workspace/jaxbProject2/jaxb/smilSchema/smil20-struct.xsd'.
      [xjc] line 27 of smil20-struct.xsd
      [xjc] [ERROR] src-attribute_group: Attribute group
'structureModuleAttrs' does not conform to the schema for schemas. Element
'attribute' is invalid or misplaced.
      [xjc] line 27 of smil20-struct.xsd
      [xjc] [ERROR] src-resolve.4.2: Components from namespace
'http://www.w3.org/2001/SMIL20/Language' are not referenceable from schema
document
'file:/C:/eclipseWorkspace3/workspace/jaxbProject2/jaxb/smilSchema/smil20-struct.xsd'.
      [xjc] line 43 of smil20-struct.xsd



>From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
>Reply-To: users_at_jaxb.dev.java.net
>To: users_at_jaxb.dev.java.net
>Subject: Re: Does xjc support default namespace?
>Date: Thu, 12 Feb 2004 16:30:49 -0800
>
>
> > However, I must replace text to xmlns:xml by mistake when I search for
>it in
> > my schema file.
> >
> > Could you please kindly look at my real schema file again?
> >
> > I just run it with xjc again, I got the same result.
>
>OK, it must be the following line:
>
> > xmlns:x="http://www.w3.org/XML/1998/namespace"
>
>I think what Xerces (the error message is from Xerces) is telling you is
>that this namespace cannot be bound to any prefix other than 'xml', and
>that's already predefined.
>
>regards,
>--
>Kohsuke Kawaguchi
>Sun Microsystems kohsuke.kawaguchi_at_sun.com
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>

_________________________________________________________________
Find great local high-speed Internet access value at the MSN High-Speed
Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net