mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
moved these into simple test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4547 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,105 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:alfresco="http://www.alfresco.org/alfresco"
|
||||
elementFormDefault="qualified">
|
||||
<xs:simpleType name="five_string_values">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="one">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>1 - eno</alfresco:label>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="two">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>2 - owt</alfresco:label>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="three">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>3 - eerht</alfresco:label>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="four">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>4 - ruof</alfresco:label>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="five">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>5 - evif</alfresco:label>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="ten_string_values">
|
||||
<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:enumeration value="seven"/>
|
||||
<xs:enumeration value="eight"/>
|
||||
<xs:enumeration value="nine"/>
|
||||
<xs:enumeration value="ten"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="five_number_list">
|
||||
<xs:list itemType="five_string_values"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="ten_number_list">
|
||||
<xs:list itemType="ten_string_values"/>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="ten_number_list_select_three">
|
||||
<xs:restriction base="ten_number_list">
|
||||
<xs:length value="3"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:element name="components">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="required_textfield" type="xs:string" minOccurs="1" maxOccurs="1">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>A Required String</alfresco:label>
|
||||
<alfresco:alert>Please enter a non zero length string</alfresco:alert>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="optional_textfield" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element name="prefilled_textfield" type="xs:string" minOccurs="0" maxOccurs="1" default="i am the default value"/>
|
||||
<xs:element name="integer" type="xs:integer"/>
|
||||
<xs:element name="positive_integer" type="xs:positiveInteger"/>
|
||||
<xs:element name="double" type="xs:double"/>
|
||||
<xs:element name="date" type="xs:date"/>
|
||||
<xs:element name="radio" type="five_string_values"/>
|
||||
<xs:element name="combobox" type="ten_string_values"/>
|
||||
<xs:element name="list_of_five" type="five_number_list"/>
|
||||
<xs:element name="list_of_ten" type="ten_number_list"/>
|
||||
<xs:element name="list_of_ten_select_three" type="ten_number_list_select_three">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<alfresco:label>10 select 3</alfresco:label>
|
||||
<alfresco:alert>Please select at least 3 items from the list.</alfresco:alert>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="textarea" type="xs:anyType"/>
|
||||
<xs:element name="checkbox_default_true" type="xs:boolean" default="true"/>
|
||||
<xs:element name="checkbox_default_false" type="xs:boolean" default="false"/>
|
||||
<xs:element name="checkbox_no_default" type="xs:boolean"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
@@ -1,67 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
exclude-result-prefixes="xhtml">
|
||||
|
||||
<xsl:output method="html" version="4.01" encoding="UTF-8" indent="yes"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
|
||||
<xsl:preserve-space elements="*"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body
|
||||
{
|
||||
font-family: Tahoma, Arial, Helvetica, sans-serif;
|
||||
background-color: white;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: #003366;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<title>Component Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<xsl:apply-templates/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/required_textfield">
|
||||
<div style="line-height: 25px;"><span class="name">Required Textfield:</span> <xsl:value-of select="/components/required_textfield"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/optional_textfield">
|
||||
<div style="line-height: 25px;"><span class="name">Optional Textfield:</span> <xsl:value-of select="/components/optional_textfield"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/integer">
|
||||
<div style="line-height: 25px;"><span class="name">Integer:</span> <xsl:value-of select="/components/integer"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/positive_integer">
|
||||
<div style="line-height: 25px;"><span class="name">Positive Integer:</span> <xsl:value-of select="/components/positiveInteger"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/double">
|
||||
<div style="line-height: 25px;"><span class="name">Double:</span> <xsl:value-of select="/components/double"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/date">
|
||||
<div style="line-height: 25px;"><span class="name">Date:</span> <xsl:value-of select="/components/date"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/radio">
|
||||
<div style="line-height: 25px;"><span class="name">Radio:</span> <xsl:value-of select="/components/radio"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/combobox">
|
||||
<div style="line-height: 25px;"><span class="name">ComboBox:</span> <xsl:value-of select="/components/combobox"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/textarea">
|
||||
<div style="line-height: 25px;"><span class="name">TextArea:</span> <xsl:value-of select="/components/textarea"/></div>
|
||||
</xsl:template>
|
||||
<xsl:template match="/components/checkbox">
|
||||
<div style="line-height: 25px;"><span class="name">CheckBox:</span> <xsl:value-of select="/components/checkbox"/></div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user