[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
In my classes - there is typically at least one student who will get surprised by this.
Everything in the input XML will create a node - even whitespace (tabs, line end, LF/CR) unless you take explicit steps to remove the white space as not important to your processing. A text node IS an actual node whose value is the text - even if it is white space.
Cheers...Hugh
----- Original Message ----- From: "Wasiq Shaikh" <wasiq911@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 21, 2007 9:01 AM
Subject: RE: [xsl] Selecting First Direct Sibling
Re: [xsl] Selecting First Direct Sibling
Subject: Re: [xsl] Selecting First Direct Sibling From: "CyberSpace Industries 2000 Inc." <csi2000@xxxxxxxxxxxxxxx> Date: Tue, 21 Aug 2007 10:24:16 -0400 |
In my classes - there is typically at least one student who will get surprised by this.
Everything in the input XML will create a node - even whitespace (tabs, line end, LF/CR) unless you take explicit steps to remove the white space as not important to your processing. A text node IS an actual node whose value is the text - even if it is white space.
Cheers...Hugh
CyberSpace Industries 2000 Inc. Multimedia Promotions XML Training and Consulting http://cyberspace-industries-2000.com
----- Original Message ----- From: "Wasiq Shaikh" <wasiq911@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 21, 2007 9:01 AM
Subject: RE: [xsl] Selecting First Direct Sibling
Oh I see. I had always thought that node() would select an actual node or text. Didn't think it would select blank spaces.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting First Direct Si, Wasiq Shaikh | Thread | Re: [xsl] Selecting First Direct Si, Wendell Piez |
RE: [xsl] Selecting First Direct Si, Wasiq Shaikh | Date | Re: [xsl] Selecting First Direct Si, Wendell Piez |
Month |
Keywords