[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Whitespace stripping

Subject: Whitespace stripping
From: Paul Prescod <paul@xxxxxxxxxxx>
Date: Thu, 18 Nov 1999 20:21:14 -0600
xsl compress whitespace
I have a hard time thinking when I would use the xsl:strip-space
element. It doesn't do traditional HTML/DSSSL style whitespace
compression. It only strips nodes that are completely text and doesn't
normalize or compress anything else. One might imagine that it would be
useful to strip empty nodes in a table, for example...but not really.
You're likely to use a rule like this in a table:

<xsl:template match="table">
	<xsl:apply-templates select="caption"/>
	<xsl:apply-templates select="th|tr"/>
</xsl:template>

And that surpresses the text nodes anyhow. I suppose it saves typing the
"select" attribute in some cases but it seems like more trouble than it
is worth.

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
Bart: Dad, do I really have to brush my teeth?
Homer: No, but at least wash your mouth out with soda.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.