Note: If attributes are for article, then put the definitions under:
<xs:group name="articleExtra">
....
Use the tLine custom type as for lwWebRelated and lwPostCode: <xs:element name="lwWebRelated" type="tLine" minOccurs="0"> <xs:annotation> <xs:documentation>Related articles for Web</xs:documentation> </xs:annotation> </xs:element> <xs:element name="lwPostCode" type="tLine" minOccurs="0"> <xs:annotation> <xs:documentation>LW Post code attribute</xs:documentation> </xs:annotation> </xs:element> |
Use the tDescription custom type: <xs:element name="lwWebTitle" type="tDescription" minOccurs="0"> <xs:annotation> <xs:documentation>LW web-title GN3 attribute</xs:documentation> </xs:annotation> </xs:element> <xs:element name="lwWebCaption" type="tDescription" minOccurs="0"> <xs:annotation> <xs:documentation>LW webcaption GN3 attribute</xs:documentation> </xs:annotation> </xs:element> <xs:element name="lwWebLink" type="tDescription" minOccurs="0"> <xs:annotation> <xs:documentation>LW web-link GN3 attribute</xs:documentation> </xs:annotation> </xs:element> |
Use the xs:Boolean type: <xs:element name="lwCommentEnable" type="xs:boolean" minOccurs="0" default="false"/> <xs:element name="lwBreakingStory" type="xs:boolean" minOccurs="0" default="false"/> <xs:element name="lwIsExclusive" type="xs:boolean" minOccurs="0" default="false"/> <xs:element name="lwIsUpdate" type="xs:boolean" minOccurs="0" default="false"/> <xs:element name="lwArticleDisable" type="xs:boolean" minOccurs="0" default="false"/> |
Use the xs:dateTime type: <xs:element name="lwWebPublicationDate" type="xs:dateTime" minOccurs="0"> <xs:annotation> <xs:documentation>Date of the Web publication</xs:documentation> </xs:annotation> </xs:element> |