users@jaxb.java.net

RE: Re: Empty model groups - how to customize?

From: Perry, Steve <Steve.Perry_at_fnf.com>
Date: Wed, 13 Oct 2004 16:08:17 -0500

Ed: I did see those examples, but they weren't helpful for my question.

Picture a sequence that looks like:

<xs:sequence maxOccurs="unbounded"/>

as a constituent member of a complexType definition.

I'm thinking I need some kind of global binding, but which one?
bindingStyle?

Here is a larger fragment of the schema I'm using:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:com.fnf="http://www.fnf.com/xes">
        <xsd:include schemaLocation="IFX150_base.xsd"/>
        <xsd:complexType name="BaseSvcRq_Type">
                <xsd:sequence>
                        <xsd:element ref="RqUID"/>
                        <xsd:element ref="AsyncRqUID" minOccurs="0"/>
                        <xsd:element ref="SPName" minOccurs="0"/>
<!--HERE IT IS--> <xsd:sequence maxOccurs="unbounded"/>
                </xsd:sequence>
                <xsd:attribute name="Id" type="xsd:ID"/>
        </xsd:complexType>
        <xsd:complexType name="BaseSvcRs_Type">
                <xsd:sequence>
                        <xsd:element ref="Status" minOccurs="0"/>
                        <xsd:element ref="RqUID"/>
                        <xsd:element ref="AsyncRqUID" minOccurs="0"/>
                        <xsd:element ref="SPName" minOccurs="0"/>
                        <xsd:sequence maxOccurs="unbounded"/>
                </xsd:sequence>
                <xsd:attribute name="Id" type="xsd:ID"/>
        </xsd:complexType>

... more ...

Thanks for any help!

--steve

> -----Original Message-----
> From: Ed Mooney [mailto:Ed.Mooney_at_Sun.COM]
> Sent: Wednesday, October 13, 2004 7:51 AM
> To: users_at_jaxb.dev.java.net
> Subject: Re: Empty model groups - how to customize?
>
> Hi Steve,
>
> Did you see the examples in section 6.8.3.6 of the spec[1]? If so,
could
> you send along a pared-down schema exhibiting the problem?
>
> Thanks,
>
> -- Ed
>
> [1] http://www.jcp.org/aboutJava/communityprocess/final/jsr031/
>
> Perry, Steve wrote:
> > I'm using a customized version of the IFX 1.5 schema and it has
empty
> > <xs:sequence>'s all over it. When I run the jaxb compiler it
complains
> > that it can't generate a property name for those model groups and
that a
> > customization is required.
> >
> >
> >
> > But I cannot figure out how to do it. I've read through all I can
find
> > online, and the spec as well, and am still coming up empty.
> >
> >
> >
> > Thanks.
> >
> >
> >
> [ ... ]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net

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