xsl-list
[Top] [All Lists]

Re: Generating beautiful HTML Source Code

2003-10-15 14:42:58
put this right after your stylesheet declaration in your xslt file...

<xsl:output
    method = "html"
    indent = "yes"
/>

Best regards,

M.



----- Original Message ----- 
From: "Karl J. Stubsjoen" <karl(_at_)azprogolf(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, October 15, 2003 10:12 AM
Subject: Re: [xsl] Generating beautiful HTML Source Code


I should explain:
I use the ASP and MSXML 4.0 Parser to generate web pages on an Windows IIS
platform.  I'm refering to the generated HTML pages (their source code).
Any *beautification* should be handled by the parser, no manual process
(like Tidy) will occur.  This is where I am having troubles.

- tidy does work good though, i use it a lot!

Karl


----- Original Message -----
From: "Jim Nachlin" <jnachlin(_at_)nachlin(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, October 15, 2003 8:34 AM
Subject: Re: [xsl] Generating beautiful HTML Source Code


Tidy is a great tool:

http://www.w3.org/People/Raggett/tidy/

On Wed, 15 Oct 2003, Karl J. Stubsjoen wrote:

Hello,

I'd be interested in any reference (websites - faq...) you might be 
able
to
point me to regarding Whitespace.  Call me anal, but I'm very 
interested
in
generating very attractive HTML source code results, you know - line
breaks,
tabs, comments, etc...

Currently, my HTML source code is a random "SPLAT" of code.... and 
where
I
have attempted to add a linebreak with &#10; and/or &#13; it is 
usually
unsuccseful, as well, it seems my preserve-space elements are ignored.
I
only seem to be able to get a line break when I do:

<xsl:text>

<xsl:text>

Any tips on generating beautiful HTML Source code would be heavenly!

Karl


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



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





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



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