ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

RE: Matching text nodes with only whitespaces

Subject: RE: Matching text nodes with only whitespaces
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 3 Feb 2005 15:45:52 -0000
regex whitespaces
> I need to write a template matching text nodes, which just
> consit of multiple whitespaces (tabs in most cases). I cant't
> use normalize-space since I need leading and tailing
> whitespaces in some cases. I suppose matches() would help me
> here, but I actually don't know how to formulate the regular
> expression for that. Can you help me here? Thanks!

How about:

<xsl:template match="text()[not(normalize-space(.))]">
 ...
</xsl..

I'm not sure I understand why you can't use normalize-space()?

cheers
andrew

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.