Subject: Re: [xsl] Standards checkers for XSLT From: Robert Koberg <rob@xxxxxxxxxx> Date: Fri, 24 Nov 2006 17:24:46 -0500 |
Briefly,
1. Indentation. A stylesheet is an xml document, so the same formatting guidelines apply.
2. Limited lines' width so that the whole code can be read on the screen without horizontal scrolling.
<p>some 80 chars some other 80 chars more 80 chars</p>
3. Consistent use of naming rules:
-- camelCase notation
-- pParameter, vVariable, ... etc. Hungarian notation examples.
-- the names themselves should express the role of the variable in the transformation.
-- use of blank lines to separate sections of equally indented blocks of code that have separate meaning/roles.
-- vertical allignment of long XPath expressions
4. Preference to XPath 2.0 code over XSLT 2.0 code.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Standards checkers for XS, Michael Kay | Thread | Re: [xsl] Standards checkers for XS, Dimitre Novatchev |
Re: [xsl] Count of unique elements , Mukul Gandhi | Date | Re: [xsl] Transform inline-block ty, David Carlisle |
Month |