This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
regarding strip-space
- From: subbu at boltblue dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 16 Jul 2002 13:33:40 +0100
- Subject: [xsl] regarding strip-space
- References: <20020701213120.25797.qmail@email.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
hi
I read in the XSLT Reference that xsl:strip-space would actually remove the
whitespace-only text nodes from the source.
My question is ..( sorry its a bit weird)
1.what is a whitespace-only node?? ( is it an empty element of kind
<myel></myel>)??
2.If i have empty elements like what i have shown above(<myel></myel>)
and if i have to pick all the myel elements which have some text in it ( non
empty ) then , i beleive the only way to do it is through a condition
<xsl:for-each select = //myel[not(string-length(.) = 0)]">
is it true??
or are there any better ways to do it?
Subbu
--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list