Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/simple-test/textarea-test.xsl
Ariel Backenroth 710ac5b727 externalizing widget config for xforms to xml
- adding a utility method to ConfigElement to get a list of child config elements by name
- using JSONObject to generate js rendition of config
- adding a build script to build json.jar since json.org only distributes source
- adding a preview link for form instance data to create web content summary screen
- doing the full jsp2.0 thing with summary screen for create website, i have a hunch it will fix a websphere issue

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 21:11:24 +00:00

70 lines
2.2 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>textarea test</title>
</head>
<body>
<div>Generated by textarea-test.xsl</div>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="/textarea-test/plain_text">
<div style="line-height: 25px;">
<span class="name">plain text: </span>
<span><xsl:value-of select="."/></span>
</div>
</xsl:template>
<xsl:template match="/textarea-test/rich_text_anyType">
<div style="line-height: 25px;">
<span class="name">rich text anyType: </span>
<span><xsl:value-of select="."/></span>
</div>
</xsl:template>
<xsl:template match="/textarea-test/rich_text_stringType">
<div style="line-height: 25px;">
<span class="name">rich text stringType: </span>
<span><xsl:value-of select="."/></span>
</div>
</xsl:template>
<xsl:template match="/textarea-test/@plain_text_attribute">
<div style="line-height: 25px;">
<span class="name">rich text stringType attribute: </span>
<span><xsl:value-of select="."/></span>
</div>
</xsl:template>
<xsl:template match="/textarea-test/@rich_text_stringType_attribute">
<div style="line-height: 25px;">
<span class="name">rich text stringType attribute: </span>
<span><xsl:value-of select="."/></span>
</div>
</xsl:template>
</xsl:stylesheet>