Re: cvs: phpdoc /en/functions xslt.xml
| From: | eschmid+sic at s dot netic dot de | Date: | Sun, 04 Feb 2001 23:23:03 +0000 |
| Subject: | Re: cvs: phpdoc /en/functions xslt.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969334158@lists.php.net to get a copy of this message | ||
On Sun, Feb 04, 2001 at 04:13:55PM -0700, Ron Chmara wrote:
> Egon Schmid wrote:
> > eschmid Sun Feb 4 14:59:51 2001 EDT
> > Modified files:
> > /phpdoc/en/functions xslt.xml
> > Log:
> > Indentation in examples should be four spaces.
>
> About this:
>
> > -if (xslt_process($xslData, $xmlData, $result))
> > -{
> > +if (xslt_process($xslData, $xmlData, $result)) {
> > echo "Here is the brilliant in-depth article on learning";
> > -}
> > -else
> > -{
> > +} else {
> > echo "There was an error that occurred in the XSL transformation...\n";
>
> Should we establish a standard for bracket usage? Four spaces is currently
> standardized and documented (phpdoc/README), but bracketing is not, AFAICT.
Yes it is not documented. I prefer the } else { style.
-Egon
--
http://www.linuxtag.de/
http://php.net/books.php
http://www.concert-band.de/
http://www.php-buch.de/