As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:simpleType name="staticInfo"> <xs:restriction base="xs:string"> <xs:enumeration value="one"/> <xs:enumeration value="two"/> <xs:enumeration value="three"/> <xs:enumeration value="four"/> <xs:enumeration value="five"/> <xs:enumeration value="six"/> </xs:restriction> </xs:simpleType> <xs:element name="Record" id="Record"> <xs:complexType id="inRecord"> <xs:sequence id="inRecordSeqeunce" maxOccurs="1" minOccurs="1"> <xs:element name="proInfo" minOccurs="1" maxOccurs="unbounded" id="proInfo"> <xs:complexType id="otherInfo"> <xs:attribute name="title" type="xs:string"/> <xs:attribute name="length" type="xs:integer"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="description" type="xs:string"/> <xs:attribute name="name" type="xs:string"/> <xs:attribute name="staticInfo" type="xs:string" default="one"/> <xs:attribute name="year" type="xs:gYear"/> </xs:complexType> </xs:element> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pr="http://www.icta.lk/Individual_Business" xmlns:alf="http://www.alfresco.org" targetNamespace="http://www.icta.lk/Individual_Business" elementFormDefault="qualified"> <xs:element name="Individual" type="pr:Business"><xs:annotation><xs:appinfo><alf:label>${individual}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:complexType name="Business"> <xs:sequence> <xs:element name="Business_Name" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${business_name}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Nature_of_the_Business" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${nature_of_business}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="The_Place_of_the_Business" type="xs:string"><xs:annotation><xs:appinfo><alf:label>${business_address}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="The_Date_of_Commencement_of_the_Business" type="xs:date"><xs:annotation><xs:appinfo><alf:label>${started_date}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Aliases_for_Business" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${business_alias}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Full_Name_of_Owner" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${full_name_of_owner}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Aliases_for_Owner" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${aliases_for_owner}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Nationality_of_the_owner" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${nationality}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Residence_of_the_Owner" type="xs:string"><xs:annotation><xs:appinfo><alf:label>${residence_address}</alf:label></xs:appinfo></xs:annotation></xs:element> <xs:element name="Other_Businesses_of_the_Owner" type="xs:normalizedString"><xs:annotation><xs:appinfo><alf:label>${other_businesses}</alf:label></xs:appinfo></xs:annotation></xs:element> </xs:sequence> </xs:complexType> </xs:schema>
This looks OK. I tried it (with Firefox 2.0.0.11) and can create a new DM form (XML) instance with repeated elements. Can you please provide more details about your environment and test data ?Thanks,Jan
Do you see the same issue when using the same form within a WCM Web Project?Kevin
<?xml version="1.0"?> <!– This is a form for a page item. –> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:p="http://glendale.org.uk/alfresco/page" targetNamespace="http://glendale.org.uk/alfresco/page" elementFormDefault="qualified"> <xs:element name="page"> <xs:complexType> <xs:sequence> <xs:element name="header" type="p:headerType"/> <xs:element name="sidebar" type="p:sidebarType" minOccurs="0" maxOccurs="5"/> <xs:element name="body" type="p:bodyType" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="headerType"> <xs:sequence> <xs:element name="title" type="xs:normalizedString"/> <xs:element name="abstract" type="xs:string" minOccurs="0"/> <xs:element name="style" type="xs:normalizedString" default="default.css"/> <xs:element name="logo" type="xs:normalizedString" minOccurs="1" default="images/yags.png"/> <xs:element name="subject" type="xs:normalizedString" minOccurs="0"/> <xs:element name="category" minOccurs="1" maxOccurs="1"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Character"/> <xs:enumeration value="Notes"/> <xs:enumeration value="Rules"/> <xs:enumeration value="Setting"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="keyword" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="sidebarType"> <xs:sequence> <xs:element name="url" type="xs:normalizedString"/> </xs:sequence> </xs:complexType> <xs:complexType name="bodyType"> <xs:sequence> <xs:element name="heading" type="xs:normalizedString" minOccurs="0"/> <xs:element name="image" type="xs:normalizedString" minOccurs="0"/> <xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:schema>