Subject: Re: [xsl] Effects of white space between xml elements From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 24 Feb 2009 14:08:30 -0500 |
I hope this helps, Wendell
<xsl:for-each select="child::*"> does what you want....
"child::node()" matches the (white space) text nodes in addition.
Does white space between elements of an xml document effect the output of a transformation of that document? I noticed that sometimes adding a new line in between the closing tag of one element and the opening tag of the next element changes my output, even though I am working with the same stylesheet.
I thought that white space in an XML document was ignored during the transformation; that the only thing that will effect the output are the on/off tags and how they are nested in each other. If tags are nested properly, shouldn't white space and new lines in between elements be irrelevant?
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Effects of white space be, Hermann Stamm-Wilbra | Thread | [xsl] Re: encoding error when using, Mike Stroud |
Re: [xsl] "form.submit" not working, Martin Honnen | Date | [xsl] "form.submit" not working, himanshu padmanabhi |
Month |