File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

This canNOT be correct, can it?

Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429

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

My stylesheet:

my JSP code:

The output:

<html xmlns:blah="WhyDoesItDoThis?">

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,
I agree. Here's the link:
subject: This canNOT be correct, can it?
It's not a secret anymore!