This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes This canNOT be correct, can it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "This canNOT be correct, can it?" Watch "This canNOT be correct, can it?" New topic
Author

This canNOT be correct, can it?

Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
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
 
Don't get me started about those stupid light bulbs.
 
subject: This canNOT be correct, can it?
 
It's not a secret anymore!