06-04-2007 03:32 PM
<mytype>
<createdDate>2007-06-04</createdDate>
<anothernode />
</mytype>
06-05-2007 05:54 AM
<xs:element name="elements">
<xs:complexType>
<xs:sequence>
<xs:element name="fixed_string" type="xs:normalizedString" fixed="fixed string element value"/>
<xs:element name="default_string" type="xs:normalizedString" default="default string element value"/>
<xs:element name="fixed_integer" type="xs:integer" fixed="3"/>
<xs:element name="default_integer" type="xs:integer" default="3"/>
<xs:element name="fixed_date" type="xs:date" fixed="1978-08-08"/>
<xs:element name="default_date" type="xs:date" default="1978-08-08"/>
<xs:element name="fixed_time" type="xs:time" fixed="14:45:00"/>
<xs:element name="default_time" type="xs:time" default="14:45:00"/>
<xs:element name="fixed_radio" type="five_string_values" fixed="three">
<xs:annotation><xs:appinfo><alf:appearance>full</alf:appearance></xs:appinfo></xs:annotation>
</xs:element>
<xs:element name="default_radio" type="five_string_values" default="three">
<xs:annotation><xs:appinfo><alf:appearance>full</alf:appearance></xs:appinfo></xs:annotation>
</xs:element>
<xs:element name="fixed_combobox" type="five_string_values" fixed="three">
<xs:annotation><xs:appinfo><alf:appearance>minimal</alf:appearance></xs:appinfo></xs:annotation>
</xs:element>
<xs:element name="default_combobox" type="five_string_values" default="three">
<xs:annotation><xs:appinfo><alf:appearance>minimal</alf:appearance></xs:appinfo></xs:annotation>
</xs:element>
<xs:element name="fixed_textarea" type="xs:string" fixed="fixed string value"/>
<xs:element name="default_textarea" type="xs:string" default="default string value"/>
<xs:element name="fixed_checkbox" type="xs:boolean" fixed="true"/>
<xs:element name="default_checkbox" type="xs:boolean" default="true"/>
</xs:sequence>
</xs:complexType>
</xs:element>
06-26-2007 05:36 AM
06-29-2007 05:35 AM
<xs:include schemaLocation="/media/releases/get_company_footer_choices_simple_type.jsp"/>
<jsp:root version="1.2"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:pr="http://www.alfresco.org/alfresco/pr">
<!– xmlns:pr is mapped to /WEB-INF/pr.tld by web.xml –>
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8"/>
<jsp:directive.page isELIgnored="false"/>
<!–
The expected output is in the form:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alfresco="http://www.alfresco.org/alfresco"
elementFormDefault="qualified">
<xs:simpleType name="company_footer_choices">
<xs:restriction base="xs:string">
<xs:enumeration value="company_footer_1.xml">
<xs:annotation>
<xs:appinfo>
<alfresco:label>Company Footer 1 Name</alfresco:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="company_footer_2.xml">
<xs:annotation>
<xs:appinfo>
<alfresco:label>Company Footer 2 Name</alfresco:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:schema>
–>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.org"
elementFormDefault="qualified">
<xs:simpleType name="company_footer_choices">
<xs:restriction base="xs:normalizedString">
<!– call into CompanyFooterBean to retrieve all company footers –>
<c:forEach items="${pr:getCompanyFooterChoices(pageContext)}" var="companyFooter">
<jsp:element name="xs:enumeration">
<!– this is the file name of the company footer –>
<jsp:attribute name="value"><c:out value="${companyFooter.fileName}"/></jsp:attribute>
<jsp:body>
<xs:annotation>
<xs:appinfo>
<!– this produces the label displayed in the combobox within the press release form –>
<alf:label><c:out value="${companyFooter.name}"/></alf:label>
</xs:appinfo>
</xs:annotation>
</jsp:body>
</jsp:element>
</c:forEach>
</xs:restriction>
</xs:simpleType>
</xs:schema>
</jsp:root>
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.