12-20-2007 05:02 PM
<?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>
12-21-2007 10:13 AM
12-26-2007 05:10 AM
<?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>
01-04-2008 06:16 AM
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
01-10-2008 05:35 AM
04-21-2008 12:33 PM
04-21-2008 05:09 PM
04-22-2008 08:29 AM
Do you see the same issue when using the same form within a WCM Web Project?
Kevin
04-22-2008 09:02 AM
04-22-2008 09:33 AM
<?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>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.