Developer manual

Code Styling

Use full descriptive names in all instances.

eg.

INCORRECT <ul id="nav">...</ul>

CORRECT <ul id="navigation">...</ul>

For frontend naming use lowercase hyphenated

class and id names for xhtml use lowercase hyphenated naming

eg.

<h1 class="top-banner">...</h1>

<div id="page-content">...</div>

field name and id use lowercase hyphenated naming

<input type="text" id="first-name" name="first-name" />

For backend naming use lowercase unhyphenated

xslt variables and params use non-hyphenated lowercase

eg.

<xsl:variable name="firstname" select="/xml/first-name"/>

xslt template names use non-hyphenated lowercase

eg.

<xsl:template name="namecheck">...</xsl:template>