[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Standards checkers for XSLT
Subject: Re: Standards checkers for XSLT
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Fri, 24 Nov 2006 17:24:46 -0500
|
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|