469,329 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,329 developers. It's quick & easy.

<xsl:value-of select="count('/GROUPS/GROUP')"/> does not work.

When I try <xsl:value-of select="count('/GROUPS/GROUP')"/> on JSTL
<x:transform> tag, I got the following error message.

org.apache.jasper.JasperException: Can not convert #STRING to a NodeList!

but, if I try that on Sonic XIS XSL transform API It works fine.
What's the problem?

Java(apache JSTL) does not support XPath functions?

Jul 20 '05 #1
1 4824

"Son KwonNam" <ih***@spam.com> wrote in message
news:bm**********@news1.kornet.net...
When I try <xsl:value-of select="count('/GROUPS/GROUP')"/> on JSTL
<x:transform> tag, I got the following error message.

org.apache.jasper.JasperException: Can not convert #STRING to a NodeList!

but, if I try that on Sonic XIS XSL transform API It works fine.
What's the problem?


The problem is that the count() function requires a node-set argument. What
you're passing to it is the *string*
'/GROUPS/GROUP'

You actually wanted:

count(/GROUPS/GROUP)
=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Markus Seibold | last post: by
2 posts views Thread by cmrchs | last post: by
5 posts views Thread by mkaushik | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.