Subject: Re: [xsl] Selecting First Direct Sibling From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 21 Aug 2007 11:48:43 -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.
<sec> <p>In my <term>paragraph</term> <emph>I need my whitespace!</emph></p> </sec>
Cheers, Wendell
----- 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.
====================================================================== 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] Selecting First Direct Si, CyberSpace Industrie | Thread | Re: [xsl] Selecting First Direct Si, David Carlisle |
Re: [xsl] Selecting First Direct Si, CyberSpace Industrie | Date | Re: [xsl] Selecting First Direct Si, David Carlisle |
Month |