users@jaxb.java.net

Re: Does xjc support default namespace?

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

Thanks for your continue support.
But i did try putting "xml" as my prefix for "lang",but it looks worse:

[xjc] [ERROR] src-resolve: Cannot resolve the name 'xml:lang' to a(n)
attribute declaration component.
      [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 44 of smil20-struct.xsd

And it also complains about line 44:
<element name="smil" type="smil20lang:smilType"
substitutionGroup="smil20lang:smil"/>

which I don't understand why also.
Thank you very much again.





>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:44:17 -0800
>
> > 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.
> >
>
>You have to change it to ref="xml:lang". This special namespace is
>always bound to the "xml" prefix implicitly.
>
>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
>

_________________________________________________________________
Plan your next US getaway to one of the super destinations here.
http://special.msn.com/local/hotdestinations.armx


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