This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xslt readability/maintainability
- From: "Vitaly B. Rudovich" <mail at vrudovich dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 08 Jun 2002 11:17:33 +0200
- Subject: Re: [xsl] xslt readability/maintainability
- References: <200206061935.PAA12301@biglist.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Date: Thu, 6 Jun 2002 10:56:54 -0600 (MDT)
> From: Mike Brown <mike@skew.org>
> Subject: Re: [xsl] xslt readability/maintainability
[...]
> You might be running into similar situations with your colleagues' patches,
> where the lexical flexibility of XML makes the patches semantically correct
> but written completely differently. While <foo></foo> vs <foo/>, attribute
> order, and attribute value quoting differences are fairly tolerable when they
> happen, a patch that is full of whitespace changes can be annoying and is
> actively discouraged (through admonishment of the offending party, mainly),
> although rarely is it a real disaster. The only real danger, IMHO, lies in
> encoding differences; you don't want a utf-8 encoded patch going into an
> iso-8859-1 file.
If the code is checked manually it is reasonable convert all
<foo></foo> to <foo />, order all attributes in the same way (for
instance by name) and reformat whitespaces with an automatical tool.
--
Vit(aly B.) Rudovich mail@VRudovich.com
http://www.VRudovich.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list