[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
Re:  Standards checkers for XSLT
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.