xsl-list
[Top] [All Lists]

Re: error in XSL file when using JAXP

2005-07-28 04:03:56

$aVal[for $a in . return normalize-space(

so that sequence is going to be a sequence of strings, and if it has
length greater than 1 you will get an error.


perhaps you want

$aVal[not(empty(for $a in . return normalize-space(

which would test if the sequence is non empty, but thene there is no
point in doing normalize-space as that doesn't affect whether the
sequence is empty or not

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--