Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

This canNOT be correct, can it?

 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

While experimenting with XSLTs, I've come across something truly weird.

My stylesheet:



my JSP code:



The output:

<html xmlns:blah="WhyDoesItDoThis?">
<body>2</body>
</html>

It seems that when the namespace is not recognized as a standard one, any functions using that namespace are called on the object of the first parameters.

That is blah:indexOf('abcde', 'c') translates to "abcde".indexOf("c").

Is this some problem with the jars I'm using (like xalan.jar)?

Thank you,
Yuriy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic