Why XSDElementDeclaration doesnt have Min/Max Occur? [message #15624] |
Mon, 31 March 2003 04:12  |
Eclipse User |
|
|
|
Hello,
Was wondering why the cardinality support is not there for
XSDElementDeclaration. Please correct me if i am wrong, but i believe the
XSDElementDecl can have a max|min from the XML Schema definition:
XML Representation Summary: element Element Information Item
<element
abstract = boolean : false
block = (#all | List of (extension | restriction | substitution))
default = string
final = (#all | List of (extension | restriction))
fixed = string
form = (qualified | unqualified)
id = ID
maxOccurs = (nonNegativeInteger | unbounded) : 1
minOccurs = nonNegativeInteger : 1
name = NCName
nillable = boolean : false
ref = QName
substitutionGroup = QName
type = QName
{any attributes with non-schema namespace . . .}>
Content: (annotation?, ((simpleType | complexType)?, (unique | key |
keyref)*))
</element>
but i couldnt find the api on Element in xsd doc. What should I do? I am
planning to have XSDElements as schema contents but in my schema, they can
occur more than once.
many thanks
kaunteya
|
|
|
Re: Why XSDElementDeclaration doesnt have Min/Max Occur? [message #15656 is a reply to message #15624] |
Mon, 31 March 2003 06:48  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------FBFE85F2C0C8BF450F7A766A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Kauneya,
XSD models elements (and everything else) according to the XML Schema
specification's component model. So an element has these properties:
http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s
And information about "cardinality" is modeled as a particle:
http://www.w3.org/TR/xmlschema-1/#Particle_details
The spec carefully outlines how an element information item maps to the
component model (i.e., how it maps to both an element declaration component
and a particle component):
http://www.w3.org/TR/xmlschema-1/#declare-element
It might help to look at examples:
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html
kaunteya bhattacharya wrote:
> Hello,
> Was wondering why the cardinality support is not there for
> XSDElementDeclaration. Please correct me if i am wrong, but i believe the
> XSDElementDecl can have a max|min from the XML Schema definition:
>
> XML Representation Summary: element Element Information Item
> <element
> abstract = boolean : false
> block = (#all | List of (extension | restriction | substitution))
> default = string
> final = (#all | List of (extension | restriction))
> fixed = string
> form = (qualified | unqualified)
> id = ID
> maxOccurs = (nonNegativeInteger | unbounded) : 1
> minOccurs = nonNegativeInteger : 1
> name = NCName
> nillable = boolean : false
> ref = QName
> substitutionGroup = QName
> type = QName
> {any attributes with non-schema namespace . . .}>
> Content: (annotation?, ((simpleType | complexType)?, (unique | key |
> keyref)*))
> </element>
>
> but i couldnt find the api on Element in xsd doc. What should I do? I am
> planning to have XSDElements as schema contents but in my schema, they can
> occur more than once.
>
> many thanks
>
> kaunteya
--------------FBFE85F2C0C8BF450F7A766A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Kauneya,
<p>XSD models elements (and everything else) according to the XML Schema
specification's component model. So an element has these properties:
<blockquote><a href=" http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s"> http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s</a></blockquote>
And information about "cardinality" is modeled as a particle:
<blockquote><a href="http://www.w3.org/TR/xmlschema-1/#Particle_details">http://www.w3.org/TR/xmlschema-1/#Particle_details</a></blockquote>
The spec carefully outlines how an element information item maps to the
component model (i.e., how it maps to both an element declaration component
and a particle component):
<blockquote><a href="http://www.w3.org/TR/xmlschema-1/#declare-element">http://www.w3.org/TR/xmlschema-1/#declare-element</a></blockquote>
It might help to look at examples:
<blockquote><a href=" http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html"> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html</a>
<br><a href=" http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html"></a> </blockquote>
kaunteya bhattacharya wrote:
<blockquote TYPE=CITE>Hello,
<br>Was wondering why the cardinality support is not there for
<br>XSDElementDeclaration. Please correct me if i am wrong, but i believe
the
<br>XSDElementDecl can have a max|min from the XML Schema definition:
<p>XML Representation Summary: element Element Information Item
<br><element
<br> abstract = boolean : false
<br> block = (#all | List of (extension | restriction | substitution))
<br> default = string
<br> final = (#all | List of (extension | restriction))
<br> fixed = string
<br> form = (qualified | unqualified)
<br> id = ID
<br> maxOccurs = (nonNegativeInteger | unbounded) : 1
<br> minOccurs = nonNegativeInteger : 1
<br> name = NCName
<br> nillable = boolean : false
<br> ref = QName
<br> substitutionGroup = QName
<br> type = QName
<br> {any attributes with non-schema namespace . . .}>
<br> Content: (annotation?, ((simpleType | complexType)?, (unique
| key |
<br>keyref)*))
<br></element>
<p>but i couldnt find the api on Element in xsd doc. What should I do?
I am
<br>planning to have XSDElements as schema contents but in my schema, they
can
<br>occur more than once.
<p>many thanks
<p>kaunteya</blockquote>
</html>
--------------FBFE85F2C0C8BF450F7A766A--
|
|
|
Re: Why XSDElementDeclaration doesnt have Min/Max Occur? [message #566906 is a reply to message #15624] |
Mon, 31 March 2003 06:48  |
Eclipse User |
|
|
|
--------------FBFE85F2C0C8BF450F7A766A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Kauneya,
XSD models elements (and everything else) according to the XML Schema
specification's component model. So an element has these properties:
http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s
And information about "cardinality" is modeled as a particle:
http://www.w3.org/TR/xmlschema-1/#Particle_details
The spec carefully outlines how an element information item maps to the
component model (i.e., how it maps to both an element declaration component
and a particle component):
http://www.w3.org/TR/xmlschema-1/#declare-element
It might help to look at examples:
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html
kaunteya bhattacharya wrote:
> Hello,
> Was wondering why the cardinality support is not there for
> XSDElementDeclaration. Please correct me if i am wrong, but i believe the
> XSDElementDecl can have a max|min from the XML Schema definition:
>
> XML Representation Summary: element Element Information Item
> <element
> abstract = boolean : false
> block = (#all | List of (extension | restriction | substitution))
> default = string
> final = (#all | List of (extension | restriction))
> fixed = string
> form = (qualified | unqualified)
> id = ID
> maxOccurs = (nonNegativeInteger | unbounded) : 1
> minOccurs = nonNegativeInteger : 1
> name = NCName
> nillable = boolean : false
> ref = QName
> substitutionGroup = QName
> type = QName
> {any attributes with non-schema namespace . . .}>
> Content: (annotation?, ((simpleType | complexType)?, (unique | key |
> keyref)*))
> </element>
>
> but i couldnt find the api on Element in xsd doc. What should I do? I am
> planning to have XSDElements as schema contents but in my schema, they can
> occur more than once.
>
> many thanks
>
> kaunteya
--------------FBFE85F2C0C8BF450F7A766A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Kauneya,
<p>XSD models elements (and everything else) according to the XML Schema
specification's component model. So an element has these properties:
<blockquote><a href=" http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s"> http://www.w3.org/TR/xmlschema-1/#Element_Declaration_detail s</a></blockquote>
And information about "cardinality" is modeled as a particle:
<blockquote><a href="http://www.w3.org/TR/xmlschema-1/#Particle_details">http://www.w3.org/TR/xmlschema-1/#Particle_details</a></blockquote>
The spec carefully outlines how an element information item maps to the
component model (i.e., how it maps to both an element declaration component
and a particle component):
<blockquote><a href="http://www.w3.org/TR/xmlschema-1/#declare-element">http://www.w3.org/TR/xmlschema-1/#declare-element</a></blockquote>
It might help to look at examples:
<blockquote><a href=" http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html"> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html</a>
<br><a href=" http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html"></a> </blockquote>
kaunteya bhattacharya wrote:
<blockquote TYPE=CITE>Hello,
<br>Was wondering why the cardinality support is not there for
<br>XSDElementDeclaration. Please correct me if i am wrong, but i believe
the
<br>XSDElementDecl can have a max|min from the XML Schema definition:
<p>XML Representation Summary: element Element Information Item
<br><element
<br> abstract = boolean : false
<br> block = (#all | List of (extension | restriction | substitution))
<br> default = string
<br> final = (#all | List of (extension | restriction))
<br> fixed = string
<br> form = (qualified | unqualified)
<br> id = ID
<br> maxOccurs = (nonNegativeInteger | unbounded) : 1
<br> minOccurs = nonNegativeInteger : 1
<br> name = NCName
<br> nillable = boolean : false
<br> ref = QName
<br> substitutionGroup = QName
<br> type = QName
<br> {any attributes with non-schema namespace . . .}>
<br> Content: (annotation?, ((simpleType | complexType)?, (unique
| key |
<br>keyref)*))
<br></element>
<p>but i couldnt find the api on Element in xsd doc. What should I do?
I am
<br>planning to have XSDElements as schema contents but in my schema, they
can
<br>occur more than once.
<p>many thanks
<p>kaunteya</blockquote>
</html>
--------------FBFE85F2C0C8BF450F7A766A--
|
|
|
Powered by
FUDForum. Page generated in 0.03106 seconds