This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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

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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic