Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » MinFacet, MaxFacet of xs:int with values 2147483647
MinFacet, MaxFacet of xs:int with values 2147483647 [message #70624] Mon, 13 November 2006 10:37 Go to next message
Eclipse UserFriend
Originally posted by: mgonzalez.ibit.org

When we make getFacetContents() of an element of type xs:int we get the
MinFacet and MaxFacet with values like 2147483647, -2147483647 and the
element doesn't have fixed these facets.

There is a way of getting the real facets that are really fixed?

The XML is

<xs:element name="codiAdreca" type="xs:int" minOccurs="0" maxOccurs="1"/>

this element is inside a sequence in a complex type.

Thanks.
Marilen.
Re: MinFacet, MaxFacet of xs:int with values 2147483647 [message #70642 is a reply to message #70624] Mon, 13 November 2006 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Marilen,

You're asking for the facets of the type "int" which definitely has
those facets, but elements themselves don't have facets. If you want to
know about the mixOccurs and maxOccurs values, you have too look for
that information on the XSDParticle containing the element not on the
element's type.


Marilen wrote:

> When we make getFacetContents() of an element of type xs:int we get
> the MinFacet and MaxFacet with values like 2147483647, -2147483647 and
> the element doesn't have fixed these facets.
>
> There is a way of getting the real facets that are really fixed?
>
> The XML is
>
> <xs:element name="codiAdreca" type="xs:int" minOccurs="0" maxOccurs="1"/>
>
> this element is inside a sequence in a complex type.
>
> Thanks.
> Marilen.
>
>
Re: MinFacet, MaxFacet of xs:int with values 2147483647 [message #70659 is a reply to message #70642] Tue, 14 November 2006 08:13 Go to previous message
Eclipse UserFriend
Originally posted by: Mgonzalez.ibit.org

Thanks for the answer, yes you are right. I am getting the facets from the
type int. I will ignore these facets.
Re: MinFacet, MaxFacet of xs:int with values 2147483647 [message #599136 is a reply to message #70624] Mon, 13 November 2006 12:22 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Marilen,

You're asking for the facets of the type "int" which definitely has
those facets, but elements themselves don't have facets. If you want to
know about the mixOccurs and maxOccurs values, you have too look for
that information on the XSDParticle containing the element not on the
element's type.


Marilen wrote:

> When we make getFacetContents() of an element of type xs:int we get
> the MinFacet and MaxFacet with values like 2147483647, -2147483647 and
> the element doesn't have fixed these facets.
>
> There is a way of getting the real facets that are really fixed?
>
> The XML is
>
> <xs:element name="codiAdreca" type="xs:int" minOccurs="0" maxOccurs="1"/>
>
> this element is inside a sequence in a complex type.
>
> Thanks.
> Marilen.
>
>
Re: MinFacet, MaxFacet of xs:int with values 2147483647 [message #599142 is a reply to message #70642] Tue, 14 November 2006 08:13 Go to previous message
Eclipse UserFriend
Originally posted by: Mgonzalez.ibit.org

Thanks for the answer, yes you are right. I am getting the facets from the
type int. I will ignore these facets.
Previous Topic:MinFacet, MaxFacet of xs:int with values 2147483647
Next Topic:Referenced attributes
Goto Forum:
  


Current Time: Mon Nov 24 03:10:55 GMT 2014

Powered by FUDForum. Page generated in 0.01896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software