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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to