xsl-list
[Top] [All Lists]

Re: how to make "well-formated" xml file from xslt

2004-02-27 16:56:01
On Fri, 27 Feb 2004 03:50:35 -0800 (PST), Ha Nguyen <hoangha2k3(_at_)yahoo(_dot_)com> wrote:

How to make it look like "normal" xml file ?

I set indent="no" on xsl:output so that the resulting xml
looks like <Diagram><Graph><Node></Node></Graph></Diagram>.

Then if I want to see it nicely indented for whatever
reason I run it through HTMLTrim, which you can download
from http://sourceforge.net/projects/htmltrim.

Don't be fooled by the name; it works on HTML, XHTML, and
XML.

Regards,
Brian

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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