Ignore:
Timestamp:
11/12/08 09:54:03 (11 years ago)
Author:
cbyrom
Message:

Extend the Author class with a hasValue method and implement usage
throughout - NB, treat the main author more specifically - not
including an initial dummy value so that schema validation will fail if
not specified. Fix atom id format - remove ':' from hostname since
this is a delimeter used by the id. Adjust 'content' content to
make schema compliant - xhtml content must be wrapped in div tags.
Adjust schemas accordingly - and update these to use sequences rather
than choices - to properly enforce checking for required elements (at
the marginal expense of enforcing an order on the atom contents).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/xquery/molesAtom1.0.xsd

    r4510 r4592  
    1717        <!-- redefine the atom entry contents - to include the required additional data --> 
    1818    <xs:redefine schemaLocation="atom1.0.xsd"> 
    19         <xs:group name="entryGroup"> 
    20             <xs:choice> 
    21                 <xs:group ref="atom:entryGroup"/> 
    22                 <xs:element ref="moles:entity" minOccurs="1" maxOccurs="1"/> 
    23                 <xs:element ref="moles:temporalRange" minOccurs="1" maxOccurs="1"/> 
    24                 <xs:element ref="georss:where" minOccurs="0" maxOccurs="1"/> 
    25             </xs:choice> 
    26         </xs:group> 
     19        <xs:complexType name="entryType"> 
     20                        <xs:complexContent> 
     21                        <xs:extension base="atom:entryType"> 
     22                                <xs:sequence> 
     23                                <xs:element ref="moles:entity" minOccurs="1" maxOccurs="1"/> 
     24                                <xs:element ref="moles:temporalRange" minOccurs="1" maxOccurs="1"/> 
     25                                <xs:element ref="georss:where" minOccurs="0" maxOccurs="1"/> 
     26                            </xs:sequence> 
     27                        </xs:extension> 
     28                    </xs:complexContent> 
     29         </xs:complexType> 
    2730    </xs:redefine> 
    2831</xs:schema> 
Note: See TracChangeset for help on using the changeset viewer.