[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xslt readability/maintainability

Subject: Re: xslt readability/maintainability
From: "Vitaly B. Rudovich" <mail@xxxxxxxxxxxxx>
Date: Sat, 08 Jun 2002 11:17:33 +0200
xslt maintain whitespace
> Date: Thu, 6 Jun 2002 10:56:54 -0600 (MDT)
> From: Mike Brown <mike@xxxxxxxx>
> Subject: Re:  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@xxxxxxxxxxxxx
    
           http://www.VRudovich.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2011 All Rights Reserved.