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

Re: How to test if existing tag/node contains a non-w

Subject: Re: How to test if existing tag/node contains a non-whitespace value?
From: Michael Dykman <mdykman@xxxxxxxxx>
Date: Wed, 9 Dec 2009 16:12:24 -0500
Re:  How to test if existing tag/node contains a  non-w
test="string-length(normalize-space(<expression>)) > 0"

On Wed, Dec 9, 2009 at 3:14 PM, Ben Stover <bxstover@xxxxxxxxxxx> wrote:
> Hi Michael,
> thank you, but can I achieve this with an
> <xsl:if test=.....>
>  expression as well?
> Ben
> On Wed, 9 Dec 2009 19:43:47 +0100, Michael Ludwig wrote:
>>Ben Stover schrieb am 09.12.2009 um 19:38:00 (+0100):
>>> Assume a template matches a input tag like
>>> <aaa>(0 or more whitespaces)</aaa>
>>> How can I test if this node contains a non-whitespace value?
>>Use normalize-space():
>><xsl:template match="aaa[normalize-space()]"> ...
>>Michael Ludwig

 - michael dykman
 - mdykman@xxxxxxxxx

"May you live every day of your life."
    Jonathan Swift

Larry's First Law of Language Redesign: Everyone wants the colon.

Current Thread


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.
First Name
Last Name
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.