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(_at_)hotmail(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--