xsl-list
[Top] [All Lists]

Re: [xsl] Standards checkers for XSLT

2006-11-24 15:25:03
Dimitre Novatchev wrote:
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.

Is this better:

<p>some 80 chars
some other 80 chars
more 80 chars</p>

or this:

<p>some 80 chars some other 80 chars more 80 chars</p>

?


 3. Consistent use of naming rules:

      -- camelCase notation

bah...


     --  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.

What does this mean?

-Rob







--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--