W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

AS: ASContentModel instead of ASElementDeclaration

From: Stanley Guan <Stanley.Guan@oracle.com>
Date: Tue, 18 Dec 2001 15:44:08 -0800
Message-ID: <3C1FD4C8.8B60D3DD@oracle.com>
To: www-dom@w3.org, "Benjamin C. Chang" <Ben.Chang@oracle.com>, K Karun <kkarun@us.oracle.com>
In the example, (A, (B* | C), D+) was represented by:

(snip)

ASContentModel exE = {
                 listOperator          = AS_SEQUENCE;
                 minOccurs             = 1;
                 maxOccurs             = 1;
                 subModels             = {(ASElementDeclaration A),
                                          (ASContentModel exBC),
                                          (ASContentModel exD)};
             }

(snip)

ASContentModel exBC = {
                 listOperator          = AS_CHOICE;
                 minOccurs             = 1;
                 maxOccurs             = 1;
                 subModels             = {(ASContentModel exB),
                                          (ASElementDeclaration C)};
             }

(snip)

They should be changed to:
ASContentModel exE = {
                 listOperator          = AS_SEQUENCE;
                 minOccurs             = 1;
                 maxOccurs             = 1;
                 subModels             = {(ASContentModel exA),
                                          (ASContentModel exBC),
                                          (ASContentModel exD)};
             }
and
ASContentModel exBC = {
                 listOperator          = AS_CHOICE;
                 minOccurs             = 1;
                 maxOccurs             = 1;
                 subModels             = {(ASContentModel exB),
                                              (ASContentModel exC)};
             }

The reason for changing from ASElementDeclaration to
ASContentModel is occurrences can only be specified in
ASContentModel.

For the 2nd declaration, we want to specify that it corresponds
to:
    (B* | C)
not
    (B* | C+) or something else
Received on Tuesday, 18 December 2001 18:44:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT