Re: [xsl] indenting identity

Subject: Re: [xsl] indenting identity
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 16 Jan 2003 23:58:10 +0100
Carl Yu wrote:
Why does...
<!-- IDENTITY copy, using nodes -->
indent and
<!-- IDENTITY copy, using elements -->
not?

I know that one is a node and the other is an element... but is there a way to maintain indentation when copying elements?

The first template also copies text nodes, while the second doesn't. Indentation consists of text nodes containing spaces and linefeeds. If you select elements and attirbutes only for copying, these text nodes are stripped.

J.Pietschmann



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


Current Thread