aspose file tools*
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 Spring in Action this week in the Spring 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: This canNOT be correct, can it?