Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/components/components.xsl
Ariel Backenroth 54ac87ef6b - removing usage of dojo for textfield widgets - they were basically useless and i'm working towards consistent presentation for valid/invalid states
- implementing preliminary validation feedback for submit errors meaning that for the most part, the client knows which elements are in an invalid state on submit and require fixes

next steps:
- add in xforms:alerts so we get better error messages when a control is not filled out/filled out with an invalid value
- fix up the error reporting in the ui so it looks more presentable
- add in support for custom xforms:alerts as metadata within the xsd so that we can have truly informative error messages.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4026 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-10-05 02:24:33 +00:00

68 lines
2.8 KiB
XML

<?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>