Modified: ofbiz/site/dtds/site-conf.xsd URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/site-conf.xsd?view=diff&rev=494724&r1=494723&r2=494724 ============================================================================== --- ofbiz/site/dtds/site-conf.xsd (original) +++ ofbiz/site/dtds/site-conf.xsd Tue Jan 9 21:45:00 2007 @@ -18,20 +18,38 @@ <xs:element name="site-conf"> <xs:complexType> <xs:sequence> + <xs:element minOccurs="0" ref="include"/> <xs:element minOccurs="0" ref="description"/> <xs:element minOccurs="0" ref="owner"/> - <xs:element ref="errorpage"/> - <xs:element maxOccurs="unbounded" ref="handler"/> + <xs:element minOccurs="0" ref="errorpage"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="handler"/> <xs:element minOccurs="0" ref="firstvisit"/> <xs:element minOccurs="0" ref="preprocessor"/> <xs:element minOccurs="0" ref="postprocessor"/> <xs:element minOccurs="0" ref="after-login"/> <xs:element minOccurs="0" ref="before-logout"/> - <xs:element maxOccurs="unbounded" ref="request-map"/> - <xs:element maxOccurs="unbounded" ref="view-map"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="request-map"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="view-map"/> </xs:sequence> </xs:complexType> </xs:element> + <xs:element name="include"> + <xs:annotation> + <xs:documentation> + This includes all elements of the controller.xml file references. + + Note that if you define any of the event blocks in this file (the including file) they + will override (replace) the one in the included file, effectively emptying it. The event + blocks are: firstvisit, preprocessor, postprocessor, after-login, and before-logout. + </xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:attributeGroup ref="attlist.include"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.include"> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> <xs:element name="description" type="xs:string"/> <xs:element name="owner" type="xs:string"/> <xs:element name="errorpage" type="xs:string"/>