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

Re: unix problems

Subject: Re: unix problems
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 19 Nov 2002 22:48:33 +0100
tr d unix
Yes, which version is it? If it is an older one (2.2.x), I will know one more example for conversion problems. You can also force the type conversions:

test="not(boolean(number(string-length($demoValue[@value='valid']))=0))"

But I would use one of the two shorter versions

test="string($demoValue[@value = 'valid'])"
test="normalize-space($demoValue[@value = 'valid'])"

where the first one does the same like yours. The second one removes leading and trailing spaces and reduces multiple spaces to one space (space means all space characters: http://www.w3.org/TR/REC-xml#NT-S). So the difference is only with nodes containing only space characters.

Regards,

Joerg

Laura wrote:
so would this mean that this is a bug in XALAN??

----- Original Message -----
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>

Seems to be a processor specific problem. The statement is correct. What
about test="string($demoValue[@value = 'valid'])" or
test="normalize-space($demoValue[@value = 'valid'])". Shorter and less
conversions in it.

Regards,

Joerg

Laura wrote:

sorry i meant
<xsl:if test="not(string-length($demoValue[@value = 'valid'])=0)">
This goes without errors in windows
but throws
java.lang.reflect.InvocationTargetException
when run on UNIX system


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.