XML/XSLT/HTML/CSS Code Style
The coding conventions for the user interface follow the conventions for the Java Coding Style, including 2 character indenting, and curly brace styles.
Examples
XML
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/@SECURITY-DOMAIN@</security-domain>
<resource-ref>
<res-ref-name>jdbc/calDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/CalendarDS</jndi-name>
</resource-ref>
</jboss-web>
XSLT
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="xml"
indent="yes"
omit-xml-declaration="no"
media-type="text/xml"
standalone="yes"
/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
(x)HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><fmt:message key="title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<p>Etc.</p>
</body>
</html>
CSS
#bedework #bodyBlock h2 {
color: black;
background: #f5f5f5;
}
#bedework .formButtons {
float: right;
font-size: 0.8em;
}
