Files
alfresco-community-repo/source/test-resources/xforms/tests/rendering-engine/textarea-test.xsl

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>