users@jaxb.java.net

Re: Missing cast when generating from relaxng schema?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 10 Nov 2003 11:32:07 -0800

Thanks. I confirmed the problem, fixed it internally, and added relaxng.rng
to our test cases.


Meanwhile, for a workaround, try:

      <element name="element">
        <choice>
          <attribute name="name">
            <jaxb:class name="SimpleNameClass"/> <-- added
            <data type="QName"/>
          </attribute>
          <ref name="open-name-class"/>
        </choice>
        <ref name="common-atts"/>
        <ref name="open-patterns"/>
      </element>

I didn't actually test it, but it should work.


> Many thanks for the prompt response.

I just want to encourage people to use RELAX NG :-)

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