05-23-2011 09:28 AM
<xs:include schemaLocation="webscript://path_to_script"/>06-02-2011 03:28 PM
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 117 column 85: src-resolve: Cannot resolve the name 'mt:lens-category-list' to a(n) 'type definition' component.
<xs:schema targetNamespace="http://www.alfresco.org/alfresco/MT"
xmlns:mt="http://www.alfresco.org/alfresco/MT"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.org"
elementFormDefault="qualified">
//from webscript ${element} value is replaced with lens
// and we are iterating through list of values to populate enumeration
<xs:simpleType name="${element}-category-list">
<xs:restriction base="xs:normalizedString">
<#if values??>
<#list values as value>
<xs:enumeration value="${value.id}">
<xs:annotation>
<xs:appinfo>
<alf:label>${value.label}</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</#list>
</#if>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="${element}-list">
<xs:list itemType="mt:${element}-category-list"/>
</xs:simpleType>
</xs:schema>
…
<xs:element name="Lens" type="mt:lens-category-list" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<alf:appearance>minimal</alf:appearance>
<alf:label>Lens ID</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
…
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.