learn java
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

Win a copy of The Software Craftsman this week in the Agile forum!
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,
wood burning stoves
subject: This canNOT be correct, can it?