xsl-list
[Top] [All Lists]

Re: generating human-readable HTML

2005-03-01 16:53:34
Brian Chrisman writes:
Are you just trying to not get the 'one line of output', or is there a
deeper reason you need to keep the newlines?

There is no deeper reason, just readability.

If not, have you tried putting indent="yes" in your xsl:output
declaration?

I hadn't tried that, because the XSLT spec says:

        The value of the indent attribute provides the value of the
        indent parameter to the serialization method. The default value
        is yes in the case of the html and xhtml output methods, no in
        the case of the xml output method.

and my xsl:output declaration already has method="xhtml".  But sure
enough, adding indent="yes" gives much better results -- thanks!

-- 
Kevin


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>