xsl-list
[Top] [All Lists]

Re: indenting identity

2003-01-16 15:58:10
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



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