cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lincoln Mitchell" <linc...@interfaces-n-creatives.com>
Subject RE: output indent yes?
Date Thu, 16 Aug 2007 20:28:14 GMT
Good points. However,I installed the Firefox extension but it didn't indent
the code.
Linc

> -----Original Message-----
> From: Tobia Conforto [mailto:tobia.conforto@linux.it]
> Sent: Thursday, 16 August 2007 9:00 PM
> To: users@cocoon.apache.org
> Subject: Re: output indent yes?
> 
> Lincoln Mitchell wrote:
> > but doesn't indent my html in the xsl file
> 
> <indent>yes</indent> does not actually indent the code, it just adds
> newlines here and there.
> 
> I personally prefer to leave all output unindented (one long line) and
> just *view* it indented when I want to.  This way I don't need to worry
> about newlines being inserted where they shouldn't, possibly causing
> strange layout problems.
> 
> Here is the way I do it, in case you find it useful.  I have configured
> my browser (Opera) to open my text editor (Vim) whenever I choose "view
> source".  Then I have configured Vim so that by typing a shortcut the
> whole file being displayed is passed through xmllint, a tool that can
> re-indent XML.  The Vim config is:  map <M-f> :%!xmllint --format -<CR>
> This has the benefit of alerting me of strange errors, as xmllint is
> very strict about XML syntax.
> 
> Another way is to use this Firefox extension:
> https://addons.mozilla.org/en-US/firefox/addon/697
> 
> 
> HTH
> Tobia
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message